assertIn but more like this, self.assertIn("Python", driver.title) and I've also seen it like this (simple use, not in unittest) assert "Python" in driver.
確定! 回上一頁