diff options
Diffstat (limited to 'python/samba')
| -rw-r--r-- | python/samba/tests/netcmd.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/samba/tests/netcmd.py b/python/samba/tests/netcmd.py index 4bcddd332e7..833ad418923 100644 --- a/python/samba/tests/netcmd.py +++ b/python/samba/tests/netcmd.py @@ -94,6 +94,14 @@ class TestParmTests(NetCmdTestCase): "--section-name=tmp"], retcode=None) + def test_section_globals(self): + # We can have '[global]' and '[globals]' + for name in ['global', 'globals']: + self.run_netcmd(cmd_testparm, + [f"--configfile={self.smbconf.name}", + f"--section-name={name}"], + retcode=None) + def test_no_such_section(self): out, err = self.run_netcmd(cmd_testparm, ["--configfile=%s" % self.smbconf.name, |
