File: mention_test.py

package info (click to toggle)
errbot 6.2.0%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,856 kB
  • sloc: python: 11,572; makefile: 163; sh: 97
file content (21 lines) | stat: -rw-r--r-- 568 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from os import path

extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), "mention_plugin")


def test_foreign_mention(testbot):
    assert "Somebody mentioned toto!" in testbot.exec_command(
        "I am telling you something @toto"
    )


def test_testbot_mention(testbot):
    assert "Somebody mentioned me!" in testbot.exec_command(
        "I am telling you something @Err"
    )


def test_multiple_mentions(testbot):
    assert "Somebody mentioned toto,titi!" in testbot.exec_command(
        "I am telling you something @toto and @titi"
    )