'Testing whether we do nothing if we are not running a session'

@blocking_call_on_reactor_thread
def test_download_file_not_running(self):

    def mocked_add_new_session(_):
        raise RuntimeError('_add_new_session    not    be    called')
    self.handler._add_new_session = mocked_add_new_session
    self.handler.download_file('test', '127.0.0.1', 1234)
