Exemplo n.º 1
0
 def test_valid_pass(self):
     self.assertEqual(validate_password(self.pass_correct),
                      "Your password {} is Valid".format(self.pass_correct))
Exemplo n.º 2
0
 def test_pass_no_whitespace(self):
     self.assertEqual(
         validate_password(self.pass_whitespace),
         "Your Password {} is Invalid it should not contain white spaces".
         format(self.pass_whitespace))
Exemplo n.º 3
0
 def test_pass_should_contain_special_char(self):
     self.assertEqual(
         validate_password(self.pass_special),
         "Your Password {} is Invalid it should contain at least a special character"
         .format(self.pass_special))
Exemplo n.º 4
0
 def test_pass_should_contain_uppercase_char(self):
     self.assertEqual(
         validate_password(self.pass_upper),
         "Your Password {} is Invalid it should contain at least a capital character"
         .format(self.pass_upper))
Exemplo n.º 5
0
 def test_pass_should_contain_num(self):
     self.assertEqual(
         validate_password(self.pass_num),
         "Your Password {} is Invalid it should contain at least a number".
         format(self.pass_num))
Exemplo n.º 6
0
 def test_pass_max_len(self):
     self.assertEqual(
         validate_password(self.pass_long_len),
         "Your Password {} is Invalid it should have a minumum of 6 characters & a maximum of 12 characters"
         .format(self.pass_long_len))