예제 #1
0
 def test_correct_data(self):
     """Test with correct login and password"""
     self.assertTrue(valid_admin_user("vasja.pupkin", "passsecret"))
예제 #2
0
 def test_with_empty_data(self):
     """Test with empty login and password"""
     self.assertFalse(valid_admin_user("", ""))
예제 #3
0
 def test_with_incorrect_data_4(self):
     """Test with correct login and incorrect password (letter case not correct)"""
     self.assertFalse(valid_admin_user("vasja.pupkin", "PasSsecRet"))
예제 #4
0
 def test_with_incorrect_data_3(self):
     """Test with incorrect login(letter case not correct) and correct password"""
     self.assertFalse(valid_admin_user("vasja.pupkin", "passsecret"))
예제 #5
0
 def test_with_incorrect_data_2(self):
     """Test with correct login and incorrect password"""
     self.assertFalse(valid_admin_user("vasja.pupkin", "paset"))
예제 #6
0
 def test_with_incorrect_data_1(self):
     """Test with correct login and password"""
     self.assertFalse(valid_admin_user("vasfdfja.pufdf", "paset"))