These were the only tests in __init__.py.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
"""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
# 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"))