'unittest test setup code'

@blocking_call_on_reactor_thread
@inlineCallbacks
def setUp(self, autoload_discovery=True):

    (yield TestAsServer.setUp(self, autoload_discovery=autoload_discovery))
    self.port = self.session.config.get_video_server_port()
    self.sourcefn = os.path.join(TESTS_DATA_DIR, 'video.avi')
    self.sourcesize = os.path.getsize(self.sourcefn)
    self.tdef = None
    self.expsize = 0
    (yield self.start_vod_download())
