def test_valid_login(): result = authentication.is_valid_login( { 'username': '******', 'password': '******' }, 'sally', '123') assert result == True
def test_user_record_password_does_not_match(): result = authentication.is_valid_login( { 'username': '******', 'password': '******' }, 'sally', '203880') assert result == False
def test_badly_formated_user_record(): result = authentication.is_valid_login({'random': 'property'}, 'sally', '123') assert result == False
def test_no_user_record_is_provided(): result = authentication.is_valid_login(None, 'username', 'password') assert result == False