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')
def test_encoding_from_content_type_none(self): from eek.spider import encoding_from_content_type self.assertIsNone(encoding_from_content_type('text/html'))