def test_get_backend_import_error(self): with pytest.raises(ImportError): backends.get_backend_class("foobar")
def test_get_backend_zookeeper(self): assert backends.get_backend_class("zookeeper") == powny.backends.zookeeper.Backend
def test_get_backend_zookeeper(self): assert backends.get_backend_class( "zookeeper") == powny.backends.zookeeper.Backend