'Testing whether the API returns a 400 and error if the name parameter is not passed'

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

    post_data = {'description': "Video's    of    my    cat", 'mode': 'semi-open'}
    expected_json = {'error': 'channel    name    cannot    be    empty'}
    return self.do_request('channels/discovered', expected_code=400, expected_json=expected_json, request_type='PUT', post_data=post_data)
