Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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
Ejemplo n.º 6
0
 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