Exemplo n.º 1
0
 def test_encoding_from_content_type_with_charset(self):
     from eek.spider import encoding_from_content_type
     self.assertEquals(
         encoding_from_content_type('text/html; charset=utf-8'), 'utf-8')
Exemplo n.º 2
0
 def test_encoding_from_content_type_with_charset(self):
     from eek.spider import encoding_from_content_type
     self.assertEquals(
         encoding_from_content_type('text/html; charset=utf-8'),
         'utf-8')
Exemplo n.º 3
0
 def test_encoding_from_content_type_none(self):
     from eek.spider import encoding_from_content_type
     self.assertIsNone(encoding_from_content_type('text/html'))
Exemplo n.º 4
0
 def test_encoding_from_content_type_none(self):
     from eek.spider import encoding_from_content_type
     self.assertIsNone(encoding_from_content_type('text/html'))