'Testing whether the API returns a 200 if a channel has been created and when adding a rss feed'

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

    def verify_rss_added(_):
        channel_obj = self.session.lm.channel_manager.get_my_channel(my_channel_id)
        self.assertEqual(channel_obj.get_rss_feed_url_list(), ['http://rssfeed.com/rss.xml'])
    expected_json = {'added': True}
    my_channel_id = self.create_fake_channel('my    channel', 'this    is    a    short    description')
    return self.do_request((('channels/discovered/' + 'fakedispersyid'.encode('hex')) + '/rssfeeds/http%3A%2F%2Frssfeed.com%2Frss.xml'), expected_code=200, expected_json=expected_json, request_type='PUT').addCallback(verify_rss_added)
