Test that an extension can exclude parent tags when dealing with a tail.
(self)
| 968 | self.assertEqual(self.md.convert(test), result) |
| 969 | |
| 970 | def test_ancestors_tail(self): |
| 971 | """ Test that an extension can exclude parent tags when dealing with a tail. """ |
| 972 | test = """ |
| 973 | [***+em+*+strong+**](http://test.com) |
| 974 | """ |
| 975 | result = """<p><a href="http://test.com"><strong><em>+em+</em>+strong+</strong></a></p>""" |
| 976 | |
| 977 | self.md.reset() |
| 978 | self.assertEqual(self.md.convert(test), result) |