'Testing whether the API returns error 404 if the channel does not exist when creating a playlist'

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

    self.create_my_channel('my    channel', 'this    is    a    short    description')
    post_params = {'name': 'test1', 'description': 'test2'}
    return self.do_request('channels/discovered/abcd/playlists', expected_code=404, post_data=post_params, request_type='PUT')
