class Test_GetCrawlerImageLink(unittest.TestCase):
    """
    Check contents similarity
    """

    def setUp(self):
        self.wiki_pedia_image_link = WikiPediaImageLink()
        self.get_crawler_image_link = GetCrawlerImageLink()

    def test_get_like_search(self):
        test_word = "Zundert"
        answer_list = [
            'https://upload.wikimedia.org/wikipedia/commons/b/b5/Zundert-City_Hall.JPG',
        ]
        self.wiki_pedia_image_link.search_like(test_word)
        self.get_crawler_image_link.crawler(self.wiki_pedia_image_link.image_data_list[0])
        self.assertListEqual(self.get_crawler_image_link.image_link_list, answer_list)
Example #2
0
class Test_GetCrawlerImageLink(unittest.TestCase):
    """
    Check contents similarity
    """
    def setUp(self):
        self.wiki_pedia_image_link = WikiPediaImageLink()
        self.get_crawler_image_link = GetCrawlerImageLink()

    def test_get_like_search(self):
        test_word = "Zundert"
        answer_list = [
            'https://upload.wikimedia.org/wikipedia/commons/b/b5/Zundert-City_Hall.JPG',
        ]
        self.wiki_pedia_image_link.search_like(test_word)
        self.get_crawler_image_link.crawler(
            self.wiki_pedia_image_link.image_data_list[0])
        self.assertListEqual(self.get_crawler_image_link.image_link_list,
                             answer_list)
Example #3
0
 def setUp(self):
     self.wiki_pedia_image_link = WikiPediaImageLink()
     self.get_crawler_image_link = GetCrawlerImageLink()
 def setUp(self):
     self.wiki_pedia_image_link = WikiPediaImageLink()
     self.get_crawler_image_link = GetCrawlerImageLink()