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)
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)
def display_data(data, number): ''' Function that displays the user data ''' return UsersData.display_data(data, number)
def display_data(data, number): return UsersData.display_data(data, number)