'Test whether a torrent is correctly seeded'

@deferred(timeout=60)
def test_seeding(self):

    self.generate_torrent()
    def start_download(_):
        dscfg = self.dscfg_seed.copy()
        dscfg.set_dest_dir(self.getDestDir())
        self.start_download(dscfg)
    self.setup_seeder(self.tdef, TESTS_DATA_DIR).addCallback(start_download)
    return self.test_deferred
