def test_fetch_page_invalidURL_throwsException():
    url = "https://randomstringofnonexistentpage.net"
    fetcher = PageFetcher()

    with pytest.raises(RequestException):
        fetcher.fetch_page(url)
def test_fetch_page_validURL_returnsExistingPage():
    url = "https://www.biznesradar.pl"
    fetcher = PageFetcher()
    fetcher.fetch_page(url)

    assert fetcher.page.startswith("<!DOCTYPE html>")