def test_names_starts_with_j(self): subject = MyMagic(self.names) self.assertEqual(subject.names_starts_with_j(), ["John", "Jane"])
def test_names_as_list(self): subject = MyMagic(self.names) self.assertEqual(subject.names_as_list(), ["John", "Molly", "Jane"])
def test_names_start_with_j(self): subject=MyMagic(self.names) self.assertEqual(subject.names_start_with_j(), ['John', 'Jane'])
def test_names_as_list_when_empty(self): subject = MyMagic([]) self.assertEqual(subject.names_as_list(), [])
def test_names_as_list(self): subject=MyMagic(self.names) self.assertEqual(subject.names_as_list(), ['John', 'Molly', 'Jane'])