Example #1
0
    def test_display_data(self):

        self.new_data.add_password()
        test_data = UsersData(1, 1, "twitter.com", "programmer")
        test_data.add_password()

        data_found = UsersData.display_data(1, 1)
        self.assertEqual(data_found.website, test_data.website)
Example #2
0
    def test_display_data(self):
        '''
        Testing if the data can be displayed.
        '''
        self.new_data.add_password()
        test_data = UsersData(1, 1, "facebook.com", "tesla", "musky")
        test_data.add_password()

        data_found = UsersData.display_data(1, 1)
        self.assertEqual(data_found.website, test_data.website)
Example #3
0
def display_data(data, number):
    '''
    Function that displays the user data
    '''
    return UsersData.display_data(data, number)
Example #4
0
def display_data(data, number):

    return UsersData.display_data(data, number)