'Testing whether the API returns error 400 if the name is missing when creating a new playlist'

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

    self.create_my_channel('my    channel', 'this    is    a    short    description')
    expected_json = {'error': 'name    parameter    missing'}
    return self.do_request(('channels/discovered/%s/playlists' % 'fakedispersyid'.encode('hex')), expected_code=400, expected_json=expected_json, request_type='PUT')
