Exemple #1
0
 def test_existing_credentials(self):
     '''
     test to confirm if the user is in the list,if the user does not exist we will get a false response
     '''
     self.new_credential.saved_credential()
     test_saved_credential = Credentials("vperry", "twitter", "xyz")
     test_saved_credential.saved_credential()
     existing_credental = Credentials.credentials_inlist("vperry")
     self.assertTrue(existing_credental)
Exemple #2
0
def existing_credential_list(username):
    '''
    function for checking if the credential is in the list
    '''
    return Credentials.credentials_inlist(username)