'Testing whether an error is returned when we start a download from a bad URI'

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

    post_data = {'uri': 'abcd', 'destination': 'a/b/c', 'selected_files[]': '1'}
    return self.do_request('downloads', expected_code=500, request_type='PUT', post_data=post_data, expected_json={'error': 'invalid    uri'})
