Beispiel #1
0
    def test_delete_credential(self):
        self.new_credential.save_details()
        test_credential = Credentials("Twitter","tonnieishangu","Mfh45hfk")
        test_credential.save_details()

        self.new_credential.delete_credentials()
        self.assertEqual(len(Credentials.credentials_list),1)
 def test_save_many_accounts(self):
     '''
     test to check if we can save multiple credentials objects to our credentials list
     '''
     self.new_credential.save_details()
     test_credential = Credentials("Twitter", "mikeycharles", "Mfh45hfk")
     test_credential.save_details()
     self.assertEqual(len(Credentials.credentials_list), 2)
 def test_save_many_accounts(self):
     '''
     test to check if we can save multiple credentials objects to our credentials list
     '''
     self.new_credential.save_details()
     test_credential = Credentials("Twitter", "byusadiamant", "byusa123")
     test_credential.save_details()
     self.assertEqual(len(Credentials.credentials_list), 2)
 def test_save_many_account(self):
     '''
     test to check if we can save multiple credentials objects to our credentials list
     '''
     self.new_credentials.save_credentials()
     test_credential = Credentials("Facebook", "Brian Duke", "kulangombe")
     test_credential.save_credentials()
     self.assertEqual(len(Credentials.credentials_list), 2)
 def test_credential_exist(self):
     """
     test to check if we can return a true or false based on whether we find or can't find the credential.
     """
     self.new_credential.save_details()
     the_credential = Credentials("Instagram", "VallandyValary", "Mfh45hfk")
     the_credential.save_details()
     credential_is_found = Credentials.if_credential_exist("Instagram")
     self.assertTrue(credential_is_found)
 def test_credential_exist(self):
     """
     test to check if we can return a true or false based on whether we find or can't find the credential.
     """
     self.new_credential.save_details()
     the_credential = Credentials("Twitter", "byusagisele", "byusa123")
     the_credential.save_details()
     credential_is_found = Credentials.if_credential_exist("Twitter")
     self.assertTrue(credential_is_found)
 def test_save_many_accounts(self):
     '''
     test to check if we can save multiple credentials objects to our credentials list
     '''
     self.new_credential.save_details()
     test_credential = Credentials("Instagram", "VallandyValary",
                                   "Mfh45hfk")
     test_credential.save_details()
     self.assertEqual(len(Credentials.credentials_list), 2)
Beispiel #8
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_delete_credential(self):
        """
        test method to test if we can remove an account credentials from our credentials_list
        """
        self.new_credential.save_details()
        test_credential = Credentials("Twitter", "mikeycharles", "Mfh45hfk")
        test_credential.save_details()

        self.new_credential.delete_credentials()
        self.assertEqual(len(Credentials.credentials_list), 1)
    def test_credential_exist(self):
        """
        test to check if we can return a true or false based on whether we find or can't find the credential.
        """
        self.new_credentials.save_credentials()
        test_credential = Credentials("Twitter", "atemba", "Mfh45hfk")
        test_credential.save_credentials()

        found_credential = Credentials.if_credential_exist("Twitter")
        self.assertTrue(found_credential)
    def test_delete_credential(self):
        """
        test method to test if we can remove an account credentials from our credentials_list
        """
        self.new_credentials.save_credentials()
        test_credential = Credentials("Facebook", "Brian Duke", "kulangombe")
        test_credential.save_credentials()

        self.new_credentials.delete_credentials()
        self.assertEqual(len(Credentials.credentials_list), 1)
    def test_delete_credential(self):
        """
        test method to test if we can remove an account credentials from our credentials_list
        """
        self.new_credential.save_details()
        test_credential = Credentials("Twitter", "byusadiamant", "byusa123")
        test_credential.save_details()

        self.new_credential.delete_credentials()
        self.assertEqual(len(Credentials.credentials_list), 1)
    def test_credential_exist(self):
        """
        test to check if we can return a true or false based on whether we find or can't find the credential.
        """
        self.new_credentials.save_credentials()
        test_credential = Credentials("Facebook", "Brian Duke", "kulangombe")
        test_credential.save_credentials()

        found_credential = Credentials.if_credential_exist("Facebook")
        self.assertTrue(found_credential)
    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)
Beispiel #15
0
    def test_delete_credential(self):
        """
        test method to test if we can remove an account credentials from our credentials_list
        """
        self.new_credential.save_details()
        test_credential = Credentials("Instagram", "VallandyValary",
                                      "Mfh45hfk")
        test_credential.save_details()

        self.new_credential.delete_credentials()
        self.assertEqual(len(Credentials.credentials_list), 1)
    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)
    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)
Beispiel #18
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)
Beispiel #19
0
def create_new_credential(account, userName, password):
    """
    Function that creates new credentials for a given user account
    """
    new_credential = Credentials(account, userName, password)
    return new_credential
Beispiel #20
0
 def setUp(self):
     self.new_credential = Credentials('Gmail','Tony_ishangu','yx5Gij43')
Beispiel #21
0
 def test_save_many_accounts(self):
     self.new_credential.save_details()
     test_credential = Credentials("Twitter","tonnieishangu","Mfh45hfk") 
     test_credential.save_details()
     self.assertEqual(len(Credentials.credentials_list),2)
    def setUp(self):
        """
        Method that runs before each individual credentials test methods run.

        """
        self.new_credential = Credentials('Gmail', 'Owiti_Charles', 'yx5Gij43')
 def setUp(self):
     '''
     Method that runs before each individual credentials test methods run.
     '''
     self.new_credentials = Credentials('Gmail', 'lekamcharity',
                                        'kulangombe')
Beispiel #24
0
def create_new_credential(account,userName,password):
    '''
    function that create new credential details for a new user
    '''
    new_credential = Credentials(account,userName,password)
    return new_credential
Beispiel #25
0
def create_new_credential(account, username, password):
    """
    function to create new user credentials
    """
    new_credential = Credentials(account, username, password)
    return new_credential
Beispiel #26
0
    def setUp(self):
        """
        Method that runs before each individual credentials test methods run.

        """
        self.new_credential = Credentials('Gmail', 'marthavallary', 'yx5Gij43')
Beispiel #27
0
    def setUp(self):

        self.new_account = Credentials("facebook", "collins", "12345")
    def setUp(self):
        """
        Method that runs before each individual credentials test methods run.

        """
        self.new_credential = Credentials('Gmail', 'byusagisele', 'byusa123')
Beispiel #29
0
 def test_credential_exist(self):
     self.new_credential.save_details()
     the_credential = Credentials("Twitter", "tonnieishangu", "Mfh45hfk")  
     the_credential.save_details()
     credential_is_found = Credentials.if_credential_exist("Twitter")
     self.assertTrue(credential_is_found)
Beispiel #30
0
def create_new_credential(account, userName, password):
    new_credential = Credentials(account, userName, password)
    return new_credential