summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/samba_tool/provision_userPassword_crypt.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/samba/tests/samba_tool/provision_userPassword_crypt.py b/python/samba/tests/samba_tool/provision_userPassword_crypt.py
index 32205b6b9f9..07752e16c30 100644
--- a/python/samba/tests/samba_tool/provision_userPassword_crypt.py
+++ b/python/samba/tests/samba_tool/provision_userPassword_crypt.py
@@ -58,6 +58,10 @@ class ProvisionUserPasswordTestCase(SambaToolCmdTest):
(result, out, err) = self.provision()
self.assertEqual(0, result)
+ def test_length(self):
+ (result, out, err) = self.provision(machinepass="FooBar123" + ("a"*1024))
+ self.assertNotEqual(0, result)
+
def tearDown(self):
super(ProvisionUserPasswordTestCase, self).tearDown()
shutil.rmtree(self.tempsambadir)