def test_page_title_markup():
 request = Mock()
 request.APP = amo.FIREFOX
 res = render('{{ page_title("{0}"|fe("It\'s all text")) }}', {'request': request})
 assert (res == 'It&#39;s all text :: Add-ons for Firefox')

def test_page_title_markup ( ) : request = Mock ( ) request . APP = amo . FIREFOX res = render ( '{{ page_title("{0}"|fe("It\'s all text")) }}' , { 'request' : request } ) assert ( res == 'It&#39;s all text :: Add-ons for Firefox' )
if the title passed to page_title is a jinja2 markup object .