aiogram/tests/test_utils/test_markdown.py
Oleg A e065285857
fix: recover tests (#1004)
- applied pytest_async;
- fixed requirements;
- minor typos;
2022-09-18 15:32:42 +03:00

9 lines
264 B
Python

from aiogram.utils import markdown
class TestMarkdownEscape:
def test_equality_sign_is_escaped(self):
assert markdown.escape_md(r"e = mc2") == r"e \= mc2"
def test_pre_escaped(self):
assert markdown.escape_md(r"hello\.") == r"hello\\\."