'Add a single file with announce-list to a TorrentDef'

def test_add_content_announce_list(self):

    t = TorrentDef()
    fn = os.path.join(TESTS_DATA_DIR, self.VIDEO_FILE_NAME)
    t.add_content(fn)
    t.set_tracker(TRACKER)
    exphier = [[TRACKER], ['http://tracker1.tribler.org:6969/announce', 'http://tracker2.tribler.org:7070/ann'], ['http://www.cs.vu.nl', 'http://www.st.ewi.tudelft.nl', 'http://www.vuze.com']]
    t.set_tracker_hierarchy(exphier)
    t.finalize()
    metainfo = t.get_metainfo()
    self.general_check(metainfo)
    realhier = metainfo['announce-list']
    self.assertEqual(realhier, exphier)
