def setUp(self):
"""Stores a BeautifulSoup in self.soup."""
html = """
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>
Héllø World
</title>
<link href="styles/main.css" rel="stylesheet"/>
<meta content="Hello World" name="name"/>
</head>
<body>
<h1>
Hello, Wo®ld!
</h1>
</body>
</html>"""
self.soup = bs4.BeautifulSoup(html)
评论列表
文章目录