'Testing whether the API returns 400 if we supply both anon_hops and another parameter'

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

    (video_tdef, _) = self.create_local_torrent(os.path.join(TESTS_DATA_DIR, 'video.avi'))
    self.session.start_download_from_tdef(video_tdef, DownloadStartupConfig())
    infohash = video_tdef.get_infohash().encode('hex')
    self.should_check_equality = False
    return self.do_request(('downloads/%s' % infohash), post_data={'state': 'resume', 'anon_hops': 1}, expected_code=400, request_type='PATCH')
