Esempio n. 1
0
    def test_find_credentialr(self):

        self.new_credential.save_details()
        test_credential = Credentials("Twitter","tonnieishangu","Mfh45hfk") 
        test_credential.save_details()

        the_credential = Credentials.find_credential("Twitter")

        self.assertEqual(the_credential.account,test_credential.account)
    def test_find_credentials(self):
        """
        test to check if we can find a credential entry by account name and display the details of the credential
        """

        self.new_credentials.save_credentials()
        test_credential = Credentials("Facebook", "Brian Duke", "kulangombe")
        test_credential.save_credentials()

        the_credential = Credentials.find_credential("Facebook")
        self.assertEqual(the_credential.account, test_credential.account)
Esempio n. 3
0
    def test_find_credentialr(self):
        """
        test to check if we can find a credential entry by account name and display the details of the credential
        """
        self.new_credential.save_details()
        test_credential = Credentials("Twitter", "byusadiamant", "byusa123")
        test_credential.save_details()

        the_credential = Credentials.find_credential("Twitter")

        self.assertEqual(the_credential.account, test_credential.account)
    def test_find_credentialr(self):
        """
        test to check if we can find a credential entry by account name and display the details of the credential
        """
        self.new_credential.save_details()
        test_credential = Credentials("Twitter", "mikeycharles", "Mfh45hfk")
        test_credential.save_details()

        the_credential = Credentials.find_credential("Twitter")

        self.assertEqual(the_credential.account, test_credential.account)
Esempio n. 5
0
    def test_find_credentialr(self):
        """
        test to check if we can find a credential entry by account name and display the details of the credential
        """
        self.new_credential.save_details()
        test_credential = Credentials("Instagram", "VallandyValary",
                                      "Mfh45hfk")
        test_credential.save_details()

        the_credential = Credentials.find_credential("Instagram")

        self.assertEqual(the_credential.account, test_credential.account)
Esempio n. 6
0
def find_credential(account):
    """
    Function that finds a Credentials by an account name and returns the Credentials that belong to that account
    """
    return Credentials.find_credential(account)
Esempio n. 7
0
def find_account_credentials(account):
    return Credentials.find_credential(account)