Exemplo n.º 1
0
    def test_display_all_credential(self):
        '''
        method that return all the credential saved
        '''

        self.assertEqual(Credential.display_credentials(),
                         Credential.credentials_list)
 def test_display_credentials(self):
     '''
     test case to check if the function return the credential list of user
     '''
     self.new_credential.save_credential()
     test_credential = Credential("anum","Instagram","anumasif","fdsf134csd")
     test_credential.save_credential()
     self.assertEqual(len(Credential.display_credentials("anum")),2)
Exemplo n.º 3
0
 def test_display_credentials(self):
     '''
     test case to check if the function return the credential list of user
     '''
     self.new_credential.save_credential()
     test_credential = Credential("henry", "facebook", "halkano",
                                  "fdsf134csd")
     test_credential.save_credential()
     self.assertEqual(len(Credential.display_credentials("henry")), 2)
Exemplo n.º 4
0
 def test_display_credentials(self):
     '''
     Test to check if the display_credentials method, displays the correct credentials.
     '''
     self.new_credential.save_credentials()
     twitter = Credential('Mary','Twitter','Jacintaatek','pswd540')
     twitter.save_credentials()
     gmail = Credential('Mary','Gmail','Jacintaatek','pswd270')
     gmail.save_credentials()
     self.assertEqual(len(Credential.display_credentials(twitter.user_name)),2)
Exemplo n.º 5
0
 def test_display_credentials(self):
     '''
     test to check if method to display credentials works
     '''
     self.new_credential.save_credentials()
     twitter = Credential('Wilstan', 'Twitter', 'awilo', '126yzr')
     twitter.save_credentials()
     gmail = Credential('Wilstan', 'Gmail', 'awilo', 'pswd200')
     gmail.save_credentials()
     self.assertEqual(
         len(Credential.display_credentials(twitter.user_name)), 2)
Exemplo n.º 6
0
    def test_display_credentials(self):
        '''
		Test to check if the display_credentials method, displays the correct credentials.
		'''
        self.new_credential.save_credentials()
        twitter = Credential('Sonn', 'Twitter', 'Brenda', 'pswd100')
        twitter.save_credentials()
        gmail = Credential('sonn', 'Gmail', 'Brenda', 'pswd200')
        gmail.save_credentials()
        self.assertEqual(
            len(Credential.display_credentials(twitter.user_name)), 2)
Exemplo n.º 7
0
    def test_display_credentials(self):
        """
		Test to check if the display_credentials method, displays the correct credentials.
		"""
        self.new_credential.save_credentials()
        twitter = Credential('Njoroge', 'Twitter', 'Njoroge_Chosen', 'boo98')
        twitter.save_credentials()
        gmail = Credential('Njoroge', 'Gmail', 'Njoroge_Chosen', 'boo98')
        gmail.save_credentials()
        self.assertEqual(
            len(Credential.display_credentials(twitter.user_name)), 3)
Exemplo n.º 8
0
    def test_display_credentials(self):
        '''
		Test to check if the display_credentials method, displays the correct credentials
		'''
        self.new_credential.save_credentials()
        twitter = Credential('Tony', 'Twitter', 'tonkin', 'tnkz000')
        twitter.save_credentials()
        gmail = Credential('Mary', 'Gmail', 'Virginmary', 'tnkz000')
        gmail.save_credentials()
        self.assertEqual(
            len(Credential.display_credentials(twitter.user_name)), 2)
Exemplo n.º 9
0
    def test_display_credentials(self):
        """
		Test to check if the display_credentials method, displays the correct credentials.
		"""
        self.new_credential.save_credentials()
        Instagram = Credential('Elkwal', 'Instagram', 'Elkwal_Simple',
                               'Elukwal3')
        Instagram.save_credentials()
        facebook = Credential('Elkwal', 'Facebook', 'Elkwal_Simple',
                              'Elukwal3')
        facebook.save_credentials()
        self.assertEqual(
            len(Credential.display_credentials(Instagram.user_name)), 2)
Exemplo n.º 10
0
def display_credentials(user_name):
    '''
    Function to display credentials saved by a user
    '''
    return Credential.display_credentials(user_name)
Exemplo n.º 11
0
def display_credentials():
    '''
    Function that returns all the saved credentials
    '''
    return Credential.display_credentials()
Exemplo n.º 12
0
        def test_display_all_credentials(self):
            """
            returns all list of all contacts

            """
            self.assertEqual(Credential.display_credentials(),Credential.credential_list)
Exemplo n.º 13
0
def display_credential():
    """
    Function to display all credentials in the list
    """
    return Credential.display_credentials()
Exemplo n.º 14
0
 def display_credentials(user_name):
     """
 	Function to display credentials saved by a user
 	"""
     return Credential.display_credentials(user_name)
Exemplo n.º 15
0
def display_credentials(user_name):
    """
    Function that returns all the saved credentials
    """
    return Credential.display_credentials(user_name)
Exemplo n.º 16
0
def display_credentials(credential):
    """
    Function that displays all credentials.
    """
    return Credential.display_credentials()
Exemplo n.º 17
0
 def display_credential(self):
     """
     to test if credentials can be displayed using method
     """
     self.assertEqual(Credential.display_credentials(),Credential.credential_list)