Esempio 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')
Esempio 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')
Esempio 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'))
Esempio 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'))