'Add a single file with BitTornado httpseeds to a TorrentDef'

def test_add_content_httpseeds(self):

    t = TorrentDef()
    fn = os.path.join(TESTS_DATA_DIR, self.VIDEO_FILE_NAME)
    t.add_content(fn)
    t.set_tracker(TRACKER)
    expseeds = ['http://www.cs.vu.nl/index.html', 'http://www.st.ewi.tudelft.nl/index.html']
    t.set_httpseeds(expseeds)
    t.finalize()
    metainfo = t.get_metainfo()
    self.general_check(metainfo)
    realseeds = metainfo['httpseeds']
    self.assertEqual(realseeds, expseeds)
