예제 #1
0
    def test_credentials_exists(self):
        '''
        Test to check if we can return a Boolean  if we cannot find the credential.
        '''

        self.new_credentials.save_credentials()

        test_credentials = Credentials("twitter", "akumu_collins",
                                       "1234")  # new credential
        test_credentials.save_credentials()

        credentials_exists = Credentials.credentials_exists("twitter")

        self.assertTrue(credentials_exists)
예제 #2
0
def existing_credentials(default_accname):
    '''
    Functiion that checks if an account really exists
    '''
    return Credentials.credentials_exists(default_accname)