Example #1
0
def test_rss_list_no_feed_found(bot):
    rss._rss_list(bot, ["list", "invalid"])
    assert "" == bot.output
Example #2
0
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
Example #3
0
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
Example #4
0
def test_rss_list_no_feed_found(bot):
    rss._rss_list(bot, ['list', 'invalid'])
    assert '' == bot.output
Example #5
0
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
Example #6
0
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