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 < b</span>'
def test_render_as(self): string = Protected('a < b') assert string.render_as('latex') == '{a < b}' assert string.render_as('html') == 'a < b'