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