def test_getFactoryClassPassed(self):
        class FakeFactory(object):
            pass

        proxy = BaseProxy()
        factoryClass = proxy._getFactoryClass({"factoryClass": FakeFactory})
        self.assertEquals(factoryClass, FakeFactory)
Ejemplo n.º 2
0
    def test_getFactoryClassPassed(self):

        class FakeFactory(object):
            pass

        proxy = BaseProxy()
        factoryClass = proxy._getFactoryClass({"factoryClass": FakeFactory})
        self.assertEquals(factoryClass, FakeFactory)
Ejemplo n.º 3
0
 def test_getFactoryClassDefault(self):
     proxy = BaseProxy()
     factoryClass = proxy._getFactoryClass({})
     self.assertEquals(factoryClass, None)