예제 #1
0
 def test_find_credentials(self):
     """
     Check if we can find a credential by account name
     """
     self.new_credentials.save_credentials()
     test_credentials = Credentials('Twitter', 'Dorothy', 'Muhonja5')
     test_credentials.save_credentials()
     find_credentials = Credentials.find_account_name('Twitter')
     self.assertEqual(find_credentials.account_name,
                      test_credentials.account_name)
예제 #2
0
def find_credentials(account_name):
    return Credentials.find_account_name(account_name)