'Testing whether the API returns error 409 if a channel the rss feed already exists'

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

    expected_json = {'error': 'this    rss    feed    already    exists'}
    my_channel_id = self.create_fake_channel('my    channel', 'this    is    a    short    description')
    channel_obj = self.session.lm.channel_manager.get_my_channel(my_channel_id)
    channel_obj.create_rss_feed('http://rssfeed.com/rss.xml')
    return self.do_request((('channels/discovered/' + 'fakedispersyid'.encode('hex')) + '/rssfeeds/http%3A%2F%2Frssfeed.com%2Frss.xml'), expected_code=409, expected_json=expected_json, request_type='PUT')
