def METHOD_NAME(self):
    cookies = {'bb_session': '1-4301487-ZdJuaHIfHpaJiVn8VPKU-0-1461694123-1461698647-4135149312-1'}
    # noinspection PyUnresolvedReferences
    with patch.object(self.plugin.tracker, 'get_cookies', result=cookies):
        url = 'http://rutracker.org/forum/viewtopic.php?t=5062041'
        request = self.plugin._prepare_request(RutrackerTopic(url=url))
        self.assertIsNotNone(request)
        self.assertEqual(request.headers['referer'], url)
        self.assertEqual(request.headers['host'], 'rutracker.org')
        self.assertEqual(request.url, 'https://rutracker.org/forum/dl.php?t=5062041')