'Testing whether an anonymous download over our tunnels works'

@deferred(timeout=60)
@inlineCallbacks
def test_anon_download(self):

    (yield self.setup_nodes())
    def download_state_callback(ds):
        download = ds.get_download()
        if ((download.get_progress() == 1.0) and (ds.get_status() == DLSTATUS_SEEDING)):
            self.test_deferred.callback(None)
            return (0.0, False)
        return (2.0, False)
    download = self.start_anon_download()
    download.set_state_callback(download_state_callback)
    (yield self.test_deferred)
