示例#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
示例#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'
示例#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'
示例#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'
示例#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'