def test_blankpage(self) -> None:
_re = re.compile(
'\s*<!DOCTYPE html>'
'\s*<html>'
'\s*<head>'
'\s*<meta charset="utf-8">'
'\s*<title>'
'\s*W-DOM'
'\s*</title>'
'(\s*<script type="text/javascript">.*?</script>)?'
'\s*</head>'
'\s*<body>'
'\s*<script type="text/javascript">'
'.*?</script>'
'\s*</body>'
'.*</html>',
re.S
)
html = self.doc.build()
self.assertIsNotNone(_re.match(remove_wdom_id(html)))
评论列表
文章目录