| 1 |
# -*- coding=utf-8 -*- |
| 2 |
from os import path |
| 3 |
|
| 4 |
# This is to test end2end i18n behavior. |
| 5 |
|
| 6 |
extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), "i18n_plugin") |
| 7 |
|
| 8 |
|
| 9 |
def test_i18n_return(testbot): |
| 10 |
assert "язы́к" in testbot.exec_command("!i18n 1") |
| 11 |
|
| 12 |
|
| 13 |
def test_i18n_simple_name(testbot): |
| 14 |
assert "OK" in testbot.exec_command("!ру́сский") |
| 15 |
|
| 16 |
|
| 17 |
def test_i18n_prefix(testbot): |
| 18 |
assert "OK" in testbot.exec_command("!prefix_ру́сский") |
| 19 |
assert "OK" in testbot.exec_command("!prefix ру́сский") |
| 20 |
|
| 21 |
|
| 22 |
def test_i18n_suffix(testbot): |
| 23 |
assert "OK" in testbot.exec_command("!ру́сский_suffix") |
| 24 |
assert "OK" in testbot.exec_command("!ру́сский suffix") |