'Testing whether error 400 is returned when the torrent parameter is missing when adding a torrent to a channel'

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

    self.create_fake_channel('channel', '')
    expected_json = {'error': 'torrent    parameter    missing'}
    return self.do_request(('channels/discovered/%s/torrents' % 'fakedispersyid'.encode('hex')), 400, expected_json, 'PUT')
