コード例 #1
0
 def test_call_method_on_first_element(self):
     """
     when some method is missing on ElementList and
     is present in element, it should be passed
     """
     the_list = ElementList([Person(), Person(), Person()])
     the_list.walk()
     the_person = the_list.first
     self.assertEqual("walking", the_person.current_action)
コード例 #2
0
 def test_call_method_on_first_element(self):
     """
     when some method is missing on ElementList and
     is present in element, it should be passed
     """
     the_list = ElementList([Person(), Person(), Person()])
     the_list.walk()
     the_person = the_list.first
     self.assertEqual("walking", the_person.current_action)