def test_name_starts_with_j(self): my_list = MyMagic(self.names) self.assertEqual(my_list.names_with_j(), ['John', 'Jane'])
def test_array_of_names(self): my_list = MyMagic(self.names) self.assertEqual(my_list.array_of_names(), ['John', 'Molly', 'Jane'])