Пример #1
0
 def test_creditial_exist(self):
     """
     test to check if we can return a true or false based on whether we find or can't find the credential.
     """
     self.new_creditials.save_user_creditials()
     test_creditial = Creditials('kerry','kerry1','joker1234')
     test_creditial.save_user_creditials()
     
     found_credential = Creditials.creditials_exist("kerry")
     self.assertTrue(found_credential)
Пример #2
0
def check_credentials(account):
    '''
    function that checks if the credentials of the searched name exist and return true or falsd
    '''
    return Creditials.creditials_exist(account)