diff options
Diffstat (limited to 'tests/richstring_test.py')
-rw-r--r-- | tests/richstring_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/richstring_test.py b/tests/richstring_test.py index 0e83aa1..5e5f7f5 100644 --- a/tests/richstring_test.py +++ b/tests/richstring_test.py @@ -199,3 +199,9 @@ class ParseEmphasisTests(unittest2.TestCase): parse_emphasis('**first** **second**'), bold('first') + plain(' ') + bold('second') ) + + def test_escaping_star_creates_a_literal_star(self): + self.assertEquals( + parse_emphasis(r'\*hello*'), + plain('*hello*') + ) |