'Testing whether the API returns error 404 if no channel object exists in the channel manager'

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

    self.create_fake_channel('my    channel', 'this    is    a    short    description')
    self.session.lm.channel_manager._channel_list = []
    expected_json = {'error': UNKNOWN_CHANNEL_RESPONSE_MSG}
    return self.do_request(('channels/discovered/%s/rssfeeds' % 'fakedispersyid'.encode('hex')), expected_code=404, expected_json=expected_json, request_type='GET')
