|
|
@ -916,6 +916,8 @@ class TestUtil(unittest.TestCase):
|
|
|
|
supports_outside_bmp = False
|
|
|
|
supports_outside_bmp = False
|
|
|
|
if supports_outside_bmp:
|
|
|
|
if supports_outside_bmp:
|
|
|
|
self.assertEqual(extract_attributes('<e x="Smile 😀!">'), {'x': 'Smile \U0001f600!'})
|
|
|
|
self.assertEqual(extract_attributes('<e x="Smile 😀!">'), {'x': 'Smile \U0001f600!'})
|
|
|
|
|
|
|
|
# Malformed HTML should not break attributes extraction on older Python
|
|
|
|
|
|
|
|
self.assertEqual(extract_attributes('<mal"formed/>'), {})
|
|
|
|
|
|
|
|
|
|
|
|
def test_clean_html(self):
|
|
|
|
def test_clean_html(self):
|
|
|
|
self.assertEqual(clean_html('a:\nb'), 'a: b')
|
|
|
|
self.assertEqual(clean_html('a:\nb'), 'a: b')
|
|
|
|