diff options
author | Bruno Wagner <bwagner@riseup.net> | 2015-09-29 12:04:04 -0300 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2015-09-29 12:04:04 -0300 |
commit | 77d09d41a7876ef5dc380715319aaab6f8f061da (patch) | |
tree | 9fc83f5dfefd4fe1eb07606834ec676d02380f93 /service/test/unit/config | |
parent | 1946029d11775713a71e9b5b8daab5db13aad668 (diff) |
Fixed length check for password to mirror the leap webapp
Diffstat (limited to 'service/test/unit/config')
-rw-r--r-- | service/test/unit/config/test_register.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/test/unit/config/test_register.py b/service/test/unit/config/test_register.py index b127ab86..08cf56f0 100644 --- a/service/test/unit/config/test_register.py +++ b/service/test/unit/config/test_register.py @@ -1,6 +1,6 @@ import unittest -from pixelated.register import validate_username +from pixelated.register import validate_username, validate_password class TestRegister(unittest.TestCase): @@ -13,9 +13,9 @@ class TestRegister(unittest.TestCase): with self.assertRaises(ValueError): validate_username('invalid@username') - def test_username_at_least_8_characters(self): + def test_password_raises_error_if_shorter_than_8_characters(self): with self.assertRaises(ValueError): - validate_username('short') + validate_password('short') def test_username_pass_when_valid(self): try: |