def test_getFactoryClassPassed(self): class FakeFactory(object): pass proxy = BaseProxy() factoryClass = proxy._getFactoryClass({"factoryClass": FakeFactory}) self.assertEquals(factoryClass, FakeFactory)
def test_getFactoryClassPassed(self): class FakeFactory(object): pass proxy = BaseProxy() factoryClass = proxy._getFactoryClass({"factoryClass": FakeFactory}) self.assertEquals(factoryClass, FakeFactory)
def test_getFactoryClassDefault(self): proxy = BaseProxy() factoryClass = proxy._getFactoryClass({}) self.assertEquals(factoryClass, None)