`self.assertIn("Peer-Graded", html)` will do what you want.