'Testing whether starting a download from a unexisting URL gives an error'

@deferred(timeout=10)
def test_start_download_from_bad_url(self):

    post_data = {'uri': ('http://localhost:%d/test.torrent' % get_random_port())}
    self.should_check_equality = False
    return self.do_request('downloads', expected_code=500, request_type='PUT', post_data=post_data)
