def testDomainOk(self):
     self.c.params.getUnserialized({"partner": None})
     return (
         self.c.run()
         .addCallback(lambda _: self.assert_(IPartner.providedBy(self.c.partner)))
         .addCallback(lambda _: self.assert_(IDomain.providedBy(self.c.domain)))
     )
 def testAuthOK(self):
     self.c.params.getUnserialized({"partner": None})
     return self.c.run().addCallback(lambda _: self.assert_(IPartner.providedBy(self.c.partner)))