diff options
author | Bruno Wagner <bwagner@riseup.net> | 2015-09-28 18:49:23 -0300 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2015-09-28 18:49:23 -0300 |
commit | 7b77e3f3757bbc3a7358da83e9889ce9551a4e8f (patch) | |
tree | 95a6536e4eabbfaf3c25d0f08f0b04fb8d2cc209 /service/test/unit | |
parent | ea8460eeada01ccbdffe4c1198d3324469399220 (diff) |
Leap web requires 8 length password, so we'll do it on UA too
Diffstat (limited to 'service/test/unit')
-rw-r--r-- | service/test/unit/config/test_register.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/test/unit/config/test_register.py b/service/test/unit/config/test_register.py index 8e1a71a4..b127ab86 100644 --- a/service/test/unit/config/test_register.py +++ b/service/test/unit/config/test_register.py @@ -13,6 +13,10 @@ class TestRegister(unittest.TestCase): with self.assertRaises(ValueError): validate_username('invalid@username') + def test_username_at_least_8_characters(self): + with self.assertRaises(ValueError): + validate_username('short') + def test_username_pass_when_valid(self): try: validate_username('a.valid_username-123') |