def test_own_input_part(): line = parser.partition_raw(":SLPyBot!foo@bar PART #test_channel :part message") response = parser.own_input(line) assert response == [('remove_ircchannel', '#test_channel')]
def test_own_input_blank(): line = parser.partition_raw(":SLPyBot!foo@bar PRIVMSG #channel :foobar") response = parser.own_input(line) assert response == [None]
def test_own_input_join(): line = parser.partition_raw(":SLPyBot!foo@bar JOIN :#test_channel") response = parser.own_input(line) assert response == [('add_ircchannel', '#test_channel')]