def test_get_page_title(self):
     """
     These tests check that the title retrieved from the PyPI main page is correct.
     """
     title_lower_case = get_page_title("https://pypi.python.org/pypi").lower()
     self.assertIn("python", title_lower_case)
     self.assertIn("package", title_lower_case)
     self.assertIn("index", title_lower_case)
     self.assertNotIn("cats", title_lower_case)
def test_get_page_title():
    """
    These tests check that the title retrieved from the PyPI main page is correct.
    """
    title_lower_case = get_page_title("https://pypi.python.org/pypi").lower()
    assert "python" in title_lower_case
    assert "package" in title_lower_case
    assert "index" in title_lower_case
    assert "cats" not in title_lower_case
Esempio n. 3
0
 def test_get_page_title(self):
     """
     These tests check that the title retrieved from the PyPI main page is correct.
     """
     title_lower_case = get_page_title(
         "https://pypi.python.org/pypi").lower()
     self.assertIn("python", title_lower_case)
     self.assertIn("package", title_lower_case)
     self.assertIn("index", title_lower_case)
     self.assertNotIn("cats", title_lower_case)