Esempio n. 1
0
def log_in(first_name, last_name, password):
    """
    Function that enables the user to log into his account
    """
    log_in == User.log_in(first_name, last_name, password)
    if log_in != False:
        return User.log_in(first_name, last_name, password)
 def test_log_in(self):
     """
     Test if a user can log in to their account
     """
     self.new_user.save_user()
     test_user = User('Peter', 'Max', 'RAJIV12345')
     test_user.save_user()
     found_credentials = User.log_in('Peter', 'Max', 'RAJIV12345')
     self.assertEqual(found_credentials, Credentials.credentials_list)