mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
9 lines
264 B
Python
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\\\."
|