Esempio n. 1
0
 def test_oembed_html(self) -> None:
     html = '<iframe src="//www.instagram.com/embed.js"></iframe>'
     stripped_html = strip_cdata(html)
     self.assertEqual(html, stripped_html)
Esempio n. 2
0
 def test_autodiscovered_oembed_xml_format_html(self) -> None:
     iframe_content = '<iframe src="https://w.soundcloud.com/player"></iframe>'
     html = '<![CDATA[{}]]>'.format(iframe_content)
     stripped_html = strip_cdata(html)
     self.assertEqual(iframe_content, stripped_html)