mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
15 lines
367 B
Python
15 lines
367 B
Python
import pytest
|
|
|
|
from aiogram.utils import markdown
|
|
|
|
|
|
class TestMarkdownEscape:
|
|
@staticmethod
|
|
def test_equality_sign_is_escaped():
|
|
if markdown.escape_md(r"e = mc2") != r"e \= mc2":
|
|
raise AssertionError
|
|
|
|
@staticmethod
|
|
def test_pre_escaped():
|
|
if markdown.escape_md(r"hello\.") != r"hello\\\.":
|
|
raise AssertionError
|