Exemple #1
0
 def test_render_as(self):
     string = Protected('a < b')
     assert string.render_as('latex') == '{a < b}'
     assert string.render_as('html') == '<span class="bibtex-protected">a &lt; b</span>'
 def test_render_as(self):
     string = Protected('a < b')
     assert string.render_as('latex') == '{a < b}'
     assert string.render_as('html') == 'a &lt; b'
Exemple #3
0
 def test_render_as(self):
     string = Protected('a < b')
     assert string.render_as('latex') == '{a < b}'
     assert string.render_as('html') == 'a &lt; b'