summaryrefslogtreecommitdiff
path: root/service/test/unit/config
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/unit/config')
-rw-r--r--service/test/unit/config/test_register.py6
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: