def test_password_is_empty(self): self.assertEqual(app.validatePassword(""), "Password cannot be empty!")
def test_password_has_spaces(self): self.assertEqual(app.validatePassword("Password 1"), "Password cannot contain spaces!")
def test_password_is_valid(self): self.assertTrue(app.validatePassword("Password"))
def test_password_has_less_then_5_chars(self): self.assertEqual(app.validatePassword("abcd"), "Password has to have 5 characters at least!")