def test_listing_without_apps(self): self.make_conf_file('foo.yaml') mmp = MultiMapProxy(self.loader) resp = mmp.index_list(DummyReq()) assert 'foo' not in resp.response assert mmp.proj_app('foo') is not None
def test_listing_with_apps(self): self.make_conf_file('foo.yaml') mmp = MultiMapProxy(self.loader, list_apps=True) resp = mmp.index_list(DummyReq()) assert 'foo' in resp.response
def test_listing_without_apps(self, loader): self.make_conf_file(loader.base_dir, "foo.yaml") mmp = MultiMapProxy(loader) resp = mmp.index_list(DummyReq()) assert "foo" not in resp.response assert mmp.proj_app("foo") is not None
def test_listing_with_apps(self, loader): self.make_conf_file(loader.base_dir, "foo.yaml") mmp = MultiMapProxy(loader, list_apps=True) resp = mmp.index_list(DummyReq()) assert "foo" in resp.response