def test_html():
 (hug.output_format.html('<html>Hello World!</html>') == '<html>Hello World!</html>')
 (hug.output_format.html(str(1)) == '1')
 with open(os.path.join(BASE_DIRECTORY, 'README.md'), 'rb') as html_file:
  assert hasattr(hug.output_format.html(html_file), 'read')
 class FakeHTMLWithRender:
  def render(self):
   return 'test'
 assert (hug.output_format.html(FakeHTMLWithRender()) == 'test')

def test_html ( ) : ( hug . output_format . html ( '<html>Hello World!</html>' ) == '<html>Hello World!</html>' ) ( hug . output_format . html ( str ( 1 ) ) == '1' ) with open ( os . path . join ( BASE_DIRECTORY , 'README.md' ) , 'rb' ) as html_file : assert hasattr ( hug . output_format . html ( html_file ) , 'read' ) class FakeHTMLWithRender : def render ( self ) : return 'test' assert ( hug . output_format . html ( FakeHTMLWithRender ( ) ) == 'test' )
test html printing .