Ejemplo n.º 1
0
 def test_should_know_when_it_is_not_equal_to_other_binder_object(self):
     binder1 = FactoryFunction('ns', 'func')
     binder2 = FactoryFunction('ns', 'func2')
     self.assertFalse(binder1.eq(binder2))     
Ejemplo n.º 2
0
 def test_should_call_factory_and_get_created_object(self):
     binder = FactoryFunction(__name__, 'factory_method_binder_fake')
     self.assertEquals('OBJECT', binder.get('CONTAINER'))