'Testing whether fetching the trackers of a non-existent torrent is successful'

@deferred(timeout=10)
def test_get_torrent_trackers(self):

    torrent_db = self.session.open_dbhandler(NTFY_TORRENTS)
    torrent_db.addExternalTorrentNoDef(('a' * 20), 'ubuntu-torrent.iso', [['file1.txt', 42]], ('udp://trackerurl.com:1234/announce', 'http://trackerurl.com:4567/announce'), time.time())
    def verify_trackers(trackers):
        self.assertIn('DHT', trackers)
        self.assertIn('udp://trackerurl.com:1234', trackers)
        self.assertIn('http://trackerurl.com:4567/announce', trackers)
    self.should_check_equality = False
    return self.do_request(('torrents/%s/trackers' % ('a' * 20).encode('hex')), expected_code=200).addCallback(verify_trackers)
