def test_content_parser_parse_text_wrong_css_selector(self, podcasts_page_1_html, base_url): content = ContentParser(podcasts_page_1_html, base_url) text = content.parse_text('.test-cases-for-check .wrong-css-selector') assert text is None
def test_content_parser_parse_text_podcast_head_info_link(self, podcasts_page_1_html, base_url): content = ContentParser(podcasts_page_1_html, base_url) text = content.parse_text('.podcast-head-info .link') assert text == 'Subscribe'
def test_content_parser_parse_text_podcast_head_info_title(self, podcasts_page_1_html, base_url): content = ContentParser(podcasts_page_1_html, base_url) text = content.parse_text('.podcast-head-info .title') assert text == 'Podcast Head Title'
def test_content_parser_parse_text_podcast_head_info_desc(self, podcasts_page_1_html, base_url): content = ContentParser(podcasts_page_1_html, base_url) text = content.parse_text('.podcast-head-info .desc') assert text == 'Podcast Desc'
def test_content_parser_parse_text_podcast_head_info(self, podcasts_page_1_html, base_url): content = ContentParser(podcasts_page_1_html, base_url) text = content.parse_text('.podcast-head-info') assert text == 'Podcast Head Title\n Podcast Desc\n Subscribe'