Ejemplo n.º 1
0
 def test_GetAppWithoutLogin(self, get):
     am = AppManager("target", self.dbn)
     capture = py.io.StdCaptureFD(in_=False)
     am.get("myapp")
     out, err = capture.reset()
     get.not_called()
     self.assertEquals(out.strip(), ELoginFirst)
Ejemplo n.º 2
0
 def test_GetAppWithLogin(self, get):
     self.loggedin()
     am = AppManager("target", self.dbn)
     am.get("myapp")
     get.assert_called_with("target/apps/myapp", headers=TestAuthHeader)