def test_find_contact_by_name(self):
        '''
        test to check if we can find an application credential by name and display data
        '''
        self.new_credentials.save_credentials()
        test_credentials = Credentials("john", "dribble.com", "y")
        test_credentials.save_credentials()

        found_password = Credentials.find_by_app_name("dribble.com")

        self.assertEqual(found_password, test_credentials.app_password)
Esempio n. 2
0
def display_credentials(name):
    return Credentials.find_by_app_name(name)
Esempio n. 3
0
def get_password(name):
    return Credentials.find_by_app_name(name)