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