Ejemplo n.º 1
0
      def test_find_credential_by_account_name(self):
        '''
        to check if we can find a credential by the account name and display more information about it
        '''  
        self.new_credential.save_credential()
        test_credential = Credential("Github","Gift-Lumumba","gL0711419032")
        test_credential.save_credential()

        found_credential =Credential.find_by_account_name("Github")
        self.assertEqual(found_credential.password,test_credential.password)
Ejemplo n.º 2
0
def find_credential(account_name):
    '''
    finds a credential by account_name and returns the credential
    '''
    return Credential.find_by_account_name(account_name)