def test_protected_resource(self):
        response = self.login('user name', '123')
        response = web.ask(self.app, '/b', headers={'Cookie': response.headers['Set-Cookie']})
        self.assertEqual(response.status_int, 200)
        self.assertEqual(response.body, 'ok')
`Auth` requesting protected resource by logined user
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/auth.py/CookieAuthTests.test_protected_resource