def test_rss_list_no_feed_found(bot): rss._rss_list(bot, ["list", "invalid"]) assert "" == bot.output
def test_rss_list_channel(bot): rss._rss_list(bot, ["list", "#channel1"]) expected = "#channel1 feed1 http://www.site1.com/feed\n" assert expected == bot.output
def test_rss_list_all(bot_rss_list): rss._rss_list(bot_rss_list, ["list"]) expected1 = "#channel1 feed1 http://www.site1.com/feed" expected2 = "#channel2 feed2 http://www.site2.com/feed" assert expected1 in bot_rss_list.output assert expected2 in bot_rss_list.output
def test_rss_list_no_feed_found(bot): rss._rss_list(bot, ['list', 'invalid']) assert '' == bot.output
def test_rss_list_channel(bot): rss._rss_list(bot, ['list', '#channel1']) expected = '#channel1 feed1 http://www.site1.com/feed\n' assert expected == bot.output
def test_rss_list_all(bot_rss_list): rss._rss_list(bot_rss_list, ['list']) expected1 = '#channel1 feed1 http://www.site1.com/feed' expected2 = '#channel2 feed2 http://www.site2.com/feed' assert expected1 in bot_rss_list.output assert expected2 in bot_rss_list.output