def test_content_parser_parse_urls_page_1(self, podcasts_page_1_html, base_url): content = ContentParser(podcasts_page_1_html, base_url) urls = content.parse_urls('nav.navigation .page-item a') assert urls == [ 'http://podcast-site.com/page/2/', 'http://podcast-site.com/', ]
def test_content_parser_parse_urls_link_without_href(self, podcasts_page_1_html, base_url): content = ContentParser(podcasts_page_1_html, base_url) urls = content.parse_urls('.test-cases-for-check a.link-without-href') assert urls == []