forked from mindiell/hebdobot
13 lines
365 B
Python
13 lines
365 B
Python
from tests.utils import bot, CHANNEL, OWNER, SENDER
|
|
|
|
|
|
def test_private_message(bot):
|
|
bot.on_private_message(CHANNEL, SENDER, "hello")
|
|
assert len(bot.answers) == 0
|
|
|
|
|
|
def test_private_command(bot):
|
|
bot.on_private_message(CHANNEL, SENDER, "!hello")
|
|
assert len(bot.answers) == 1
|
|
assert bot.answers[0].message == "vos commandes dans le salon public"
|