예제 #1
0
 def test_names_starts_with_j(self):
     subject = MyMagic(self.names)
     self.assertEqual(subject.names_starts_with_j(), ["John", "Jane"])
예제 #2
0
 def test_names_as_list(self):
     subject = MyMagic(self.names)
     self.assertEqual(subject.names_as_list(), ["John", "Molly", "Jane"])
예제 #3
0
 def test_names_start_with_j(self):
     subject=MyMagic(self.names)
     self.assertEqual(subject.names_start_with_j(), ['John', 'Jane'])
예제 #4
0
 def test_names_as_list_when_empty(self):
     subject = MyMagic([])
     self.assertEqual(subject.names_as_list(), [])
예제 #5
0
 def test_names_as_list(self):
     subject=MyMagic(self.names)
     self.assertEqual(subject.names_as_list(), ['John', 'Molly', 'Jane'])