def test_should_call_factory_and_get_created_object(self): binder = FactoryClass(__name__, 'FactoryInstanceBinder', 'create') self.assertEquals('OBJECT', binder.get(FactoryInstanceBinder()))
def test_should_know_when_it_is_not_equal_to_other_binder_object(self): binder1 = FactoryClass('ns', 'cls', 'method') binder2 = FactoryClass('ns', 'cls', 'method2') self.assertFalse(binder1.eq(binder2))