コード例 #1
0
ファイル: test_linote.py プロジェクト: solos/linote
 def test_html_body_declared_encoding(self):
     """Linote html_body_declared_encoding function"""
     html_body_declared_encoding(
         '<meta http-equiv="Content-Type" '
         'content="text/html;charset=ISO-8859-8">').should.eq('iso8859-8')
     html_body_declared_encoding(
         '<meta http-equiv="Content-Type" '
         'content="text/html; charset=utf-8">').should.eq('utf-8')
コード例 #2
0
ファイル: test_linote.py プロジェクト: pombredanne/linote
 def test_html_body_declared_encoding(self):
     """Linote html_body_declared_encoding function"""
     html_body_declared_encoding(
         '<meta http-equiv="Content-Type" '
         'content="text/html;charset=ISO-8859-8">').should.eq(
             'iso8859-8')
     html_body_declared_encoding(
         '<meta http-equiv="Content-Type" '
         'content="text/html; charset=utf-8">').should.eq(
             'utf-8')
コード例 #3
0
ファイル: test_linote.py プロジェクト: solos/linote
 def test_html_body_declared_encoding(self):
     """Linote: html_body_declared_encoding"""
     html_body_declared_encoding(
         '<meta http-equiv="Content-Type"'
         ' content="text/html; charset=utf-8">').should.eq('utf-8')
コード例 #4
0
ファイル: test_linote.py プロジェクト: pombredanne/linote
 def test_html_body_declared_encoding(self):
     """Linote: html_body_declared_encoding"""
     html_body_declared_encoding(
         '<meta http-equiv="Content-Type"'
         ' content="text/html; charset=utf-8">').should.eq(
             'utf-8')