示例#1
0
    def test_credential_exist(self):

        self.new_credential.save_details()
        the_credential = Credentials("Twitter", "silassakwa", "xxxcvdfg")

        credential_is_found = Credentials.if_credential_exist("Twitter")
        self.assertTrue(credential_is_found)
示例#2
0
 def test_credential_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_credential.save_details()
     the_credential = Credentials("Twitter", "Jorim", "Ikrsqqfm")  
     the_credential.save_details()
     credential_is_found = Credentials.if_credential_exist("Twitter")
     self.assertTrue(credential_is_found)
示例#3
0
 def test_credential_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_credential.save_credentials()
     the_credential = Credentials("Twitter", "Macharia", "2017kare")
     the_credential.save_credentials()
     credential_is_found = Credentials.if_credential_exist("Twitter")
     self.assertTrue(credential_is_found)
示例#4
0
def check_credentials(account):
    """
    Function that check if a Credentials exists with that account name and return true or false

    """
    return Credentials.if_credential_exist(account)
示例#5
0
def check_credendtials(account):

    return Credentials.if_credential_exist(account)