Exemple #1
0
 def test_valid_pass(self):
     self.assertEqual(validate_password(self.pass_correct),
                      "Your password {} is Valid".format(self.pass_correct))
Exemple #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))
Exemple #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))
Exemple #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))
Exemple #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))
Exemple #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))