def test_get_backend_should_return_a_backend_class(self): configure( pools={ BackendPool.backend_type: ( u'{module}.{cls}'.format(module=__name__, cls=FakeXYZBackend.__name__), u'{module}.{cls}'.format(module=__name__, cls=FakeABCBackend.__name__), ) }) backend = BackendPool.get_class('fake_abc') assert issubclass(backend, FakeABCBackend)
def test_get_backend_should_return_a_backend_class(self, configured_pools): backend = BackendPool.get_class('fake_abc') assert issubclass(backend, FakeABCBackend)