| 1 |
from os import path |
| 2 |
|
| 3 |
# This is to test end2end i18n behavior. |
| 4 |
|
| 5 |
extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), "template_plugin") |
| 6 |
|
| 7 |
|
| 8 |
def test_templates_1(testbot): |
| 9 |
assert "ok" in testbot.exec_command("!test template1") |
| 10 |
|
| 11 |
|
| 12 |
def test_templates_2(testbot): |
| 13 |
assert "ok" in testbot.exec_command("!test template2") |
| 14 |
|
| 15 |
|
| 16 |
def test_templates_3(testbot): |
| 17 |
assert "ok" in testbot.exec_command("!test template3") |
| 18 |
|
| 19 |
|
| 20 |
def test_templates_4(testbot): |
| 21 |
assert "ok" in testbot.exec_command("!test template4 ok") |
| 22 |
|
| 23 |
|
| 24 |
def test_templates_5(testbot): |
| 25 |
assert "the following arguments are required: my_var" in testbot.exec_command( |
| 26 |
"!test template4" |
| 27 |
) |