Пример #1
0
    def test_admin_preauth_is_valid(self):
        c = AdminRESTClient(self.HOST, server_port=self.ADMIN_PORT,
                            preauth_key=self.ph_key_domain1)
        token = c.get_preauth_token(self.ADMIN_LOGIN)

        self.zc._session.import_session(token)
        self.assertTrue(self.zc.is_session_valid())
Пример #2
0
 def test_admin_preauth_returns_something(self):
     c = AdminRESTClient(self.HOST, server_port=self.ADMIN_PORT,
                         preauth_key=self.ph_key_domain1)
     token = c.get_preauth_token(self.ADMIN_LOGIN)
     self.assertIsInstance(token, str)