コード例 #1
0
ファイル: test_ping.py プロジェクト: akatsoulas/veresebot
def test_no_text(message):
    message.text = None
    assert not PingCommand.match(message)
コード例 #2
0
ファイル: test_ping.py プロジェクト: akatsoulas/veresebot
def test_other_text(message):
    message.text = '/foo'
    assert not PingCommand.match(message)
コード例 #3
0
ファイル: test_ping.py プロジェクト: akatsoulas/veresebot
def test_match(message):
    message.text = '/ping'
    assert PingCommand.match(message)
コード例 #4
0
ファイル: test_ping.py プロジェクト: ktosiu/python-ircd
 def setUpClass(cls):
     cls.ping = PingCommand()