aiogram/tests/test_utils/test_markdown.py
unintended f9c367548f
Fix markdown escaping issues (#363)
* #360 - Fix: escape '=' sign in markdown

* fix more escaping issues

* Rename test suite

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-06-27 16:17:38 +03:00

11 lines
267 B
Python

import pytest
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\\\."