def test_credentials_exist(self):
        '''
        Test whether the credentials object actually exists
        '''
        self.new_credentials.save_credential()
        test_credentials = Password("Instagram", "Jmos", "Mbugua",
                                    "johnmbugua")
        test_credentials.save_credential()

        credentials_exists = Password.credential_exist("Instagram")
        self.assertTrue(credentials_exists)
Example #2
0
def check_existing_credentials(account_name):
    '''
    Function to check whether a credential exists
    '''
    return Password.credential_exist(account_name)