'Testing whether the API returns error 404 if a non-existent download is stopped'

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

    self.should_check_equality = False
    return self.do_request('downloads/abcd', expected_code=404, post_data={'state': 'stop'}, request_type='PATCH')
