diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/tests/__init__.py | 12 | ||||
| -rw-r--r-- | python/samba/tests/netbios.py | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py index e37ceac9bc9..e27dd2ff5a5 100644 --- a/python/samba/tests/__init__.py +++ b/python/samba/tests/__init__.py @@ -361,18 +361,6 @@ class RpcInterfaceTestCase(TestCase): """DCE/RPC Test case.""" -class ValidNetbiosNameTests(TestCase): - - def test_valid(self): - self.assertTrue(samba.valid_netbios_name("FOO")) - - def test_too_long(self): - self.assertFalse(samba.valid_netbios_name("FOO" * 10)) - - def test_invalid_characters(self): - self.assertFalse(samba.valid_netbios_name("*BLA")) - - class BlackboxProcessError(Exception): """This is raised when check_output() process returns a non-zero exit status diff --git a/python/samba/tests/netbios.py b/python/samba/tests/netbios.py index 95f63404e74..f28b789bab7 100644 --- a/python/samba/tests/netbios.py +++ b/python/samba/tests/netbios.py @@ -54,3 +54,15 @@ class NetBiosTests(samba.tests.TestCase): # can't get the below test to work, disabling address = '127.0.0.3' res = self.n.refresh_name((self.dc, 0x20), address, self.ifc, timeout=10) + + +class ValidNetbiosNameTests(samba.tests.TestCase): + + def test_valid(self): + self.assertTrue(samba.valid_netbios_name("FOO")) + + def test_too_long(self): + self.assertFalse(samba.valid_netbios_name("FOO" * 10)) + + def test_invalid_characters(self): + self.assertFalse(samba.valid_netbios_name("*BLA")) |
