Esempio n. 1
0
def test_no_text(message):
    message.text = None
    assert not PingCommand.match(message)
Esempio n. 2
0
def test_other_text(message):
    message.text = '/foo'
    assert not PingCommand.match(message)
Esempio n. 3
0
def test_match(message):
    message.text = '/ping'
    assert PingCommand.match(message)
Esempio n. 4
0
 def setUpClass(cls):
     cls.ping = PingCommand()