def METHOD_NAME(self):
    cookies = {'uid': helper.fake_uid, 'pass': helper.fake_pass}
    # noinspection PyUnresolvedReferences
    with patch.object(self.plugin.tracker, 'get_cookies', result=cookies):
        url = "https://kinozal.tv/details.php?id=1506818"
        request = self.plugin._prepare_request(KinozalTopic(url=url))
        self.assertIsNotNone(request)
        self.assertEqual(request.headers['referer'], url)
        self.assertEqual(request.url, 'https://dl.kinozal.tv/download.php?id=1506818')