mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
This commit fixes the style issues introduced indd50a9baccording to the output from black, autopep8 and isort. Details:4e472085-2e87-4f61-b7a1-ed208506962f/
13 lines
339 B
Python
13 lines
339 B
Python
import pytest
|
|
|
|
from aiogram.utils import markdown
|
|
|
|
|
|
class TestMarkdownEscape:
|
|
def test_equality_sign_is_escaped(self):
|
|
if markdown.escape_md(r"e = mc2") != r"e \= mc2":
|
|
raise AssertionError
|
|
|
|
def test_pre_escaped(self):
|
|
if markdown.escape_md(r"hello\.") != r"hello\\\.":
|
|
raise AssertionError
|