>From df0928a8929295d1baea4a60a115d571b5bd5e4a Mon Sep 17 00:00:00 2001 From: Rowland Penny Date: Wed, 25 May 2016 16:26:48 +0100 Subject: [PATCH 2/2] Add fsmo test script Signed-off-by: Rowland Penny --- python/samba/tests/samba_tool/fsmo.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 python/samba/tests/samba_tool/fsmo.py diff --git a/python/samba/tests/samba_tool/fsmo.py b/python/samba/tests/samba_tool/fsmo.py new file mode 100644 index 0000000..3287b38 --- /dev/null +++ b/python/samba/tests/samba_tool/fsmo.py @@ -0,0 +1,30 @@ +# Unix SMB/CIFS implementation. +# Copyright (C) Rowland Penny 2016 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +import os +from samba.tests.samba_tool.base import SambaToolCmdTest + +class FsmoCmdTestCase(SambaToolCmdTest): + """Test for samba-tool fsmo show subcommand""" + + def test_fsmoget(self): + """Run fsmo show to see if it errors""" + (result, out, err) = self.runsubcmd("fsmo", "show") + + self.assertCmdSuccess(result) + self.assertEquals(err,"","Shouldn't be any error messages") + -- 1.7.10.4