Beispiel #1
0
 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
Beispiel #2
0
 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'
Beispiel #3
0
 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'
Beispiel #4
0
 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'
Beispiel #5
0
 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'