fix more escaping issues

This commit is contained in:
Ilya Samartsev 2020-06-21 20:25:32 +03:00
parent 5395fc184a
commit 4a2d0685ff
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,11 @@
import pytest
from aiogram.utils import markdown
class Test_escape:
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\\\."