fix escape characters test in test_data_model.py

This commit is contained in:
Sina Atalay 2023-11-16 21:55:54 +01:00 committed by Jeffrey Goldberg
parent 472c314fbc
commit 20561eca72
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class TestDataModel(unittest.TestCase):
self.assertEqual(result, expected)
str_with_latex_characers = r"asdf#asdf$asdf%asdf& ~ fd_ \ ^aa aa{ bb}"
expected ='asdf\\#asdf$asdf\\%asdf\\& \\textasciitilde{} fd_ \\ ^aa aa{ bb}'
expected ='asdf\\#asdf$asdf\\%asdf\\& \\textasciitilde{} fd_ \\ ^aa aa\\{ bb\\}'
with self.subTest(msg="string with LaTeX characters"):
result = data_model.escape_latex_characters(str_with_latex_characers)
print(result)