def test_that_and_this_after_creation_with_list(self): alist = [Object('one'), Object('two'), Object('three')] composite = Composite(alist) self.assertEqual(None, composite.this()) self.assertEqual(None, composite.that())
def test_do_something_simple_with_system_returns_None_for_system_instance( self): alist = [Object('one'), Object('two'), Object('three')] composite = Composite(alist) self.assertEqual(None, do_something_simple_with_system(System(composite)))
def test_do_that_and_do_this_after_creation_with_composite_instance(self): alist = [Object('one'), Object('two'), Object('three')] composite = Composite(alist) system = System(composite) self.assertEqual(None, system.do_this()) self.assertEqual(None, system.do_that())
def test_just_do_it_returns_None_after_creation_with_system_instance(self): alist = [Object('one'), Object('two'), Object('three')] composite = Composite(alist) system = System(composite) facade = Facade(system) self.assertEqual(None, facade.just_do_it())