def test_get_backends_should_return_all_backends_classes( self, configured_pools ): backends = BackendPool.all_classes() assert issubclass(backends[0], FakeXYZBackend) assert issubclass(backends[1], FakeABCBackend)
def test_get_backends_should_return_all_backends_classes(self): configure( pools={ BackendPool.backend_type: ( u'{module}.{cls}'.format(module=__name__, cls=FakeXYZBackend.__name__), u'{module}.{cls}'.format(module=__name__, cls=FakeABCBackend.__name__), ) }) backends = BackendPool.all_classes() assert issubclass(backends[0], FakeXYZBackend) assert issubclass(backends[1], FakeABCBackend)