Example #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')
Example #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')
Example #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'))
Example #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'))