# -*- coding: utf-8 -*-
import unittest
import os

from searchlinks.spiders.duckduckgo import DuckduckgoSpider
from searchlinks.spiders import parser
from tests import load_file


class ParserTests(unittest.TestCase):

    def setUp(self):
        self.maxDiff = None
        self.current_dir = os.getcwd()
        self.spider = DuckduckgoSpider()

    def test_should_parser_item_from_response(self):
        links = parser.get_links(
            load_file('tests/resources/results.html')
        )
        self.assertEqual(len(links), 30)


if __name__ == '__main__':
    unittest.main()

4420fdfb920a221f830c249ae5c04e010ae9a320
<mask token>


class ParserTests(unittest.TestCase):
    <mask token>

    def test_should_parser_item_from_response(self):
        links = parser.get_links(load_file('tests/resources/results.html'))
        self.assertEqual(len(links), 30)


<mask token>

<mask token>


class ParserTests(unittest.TestCase):

    def setUp(self):
        self.maxDiff = None
        self.current_dir = os.getcwd()
        self.spider = DuckduckgoSpider()

    def test_should_parser_item_from_response(self):
        links = parser.get_links(load_file('tests/resources/results.html'))
        self.assertEqual(len(links), 30)


<mask token>

<mask token>


class ParserTests(unittest.TestCase):

    def setUp(self):
        self.maxDiff = None
        self.current_dir = os.getcwd()
        self.spider = DuckduckgoSpider()

    def test_should_parser_item_from_response(self):
        links = parser.get_links(load_file('tests/resources/results.html'))
        self.assertEqual(len(links), 30)


if __name__ == '__main__':
    unittest.main()

import unittest
import os
from searchlinks.spiders.duckduckgo import DuckduckgoSpider
from searchlinks.spiders import parser
from tests import load_file


class ParserTests(unittest.TestCase):

    def setUp(self):
        self.maxDiff = None
        self.current_dir = os.getcwd()
        self.spider = DuckduckgoSpider()

    def test_should_parser_item_from_response(self):
        links = parser.get_links(load_file('tests/resources/results.html'))
        self.assertEqual(len(links), 30)


if __name__ == '__main__':
    unittest.main()

# -*- coding: utf-8 -*-
import unittest
import os

from searchlinks.spiders.duckduckgo import DuckduckgoSpider
from searchlinks.spiders import parser
from tests import load_file


class ParserTests(unittest.TestCase):

    def setUp(self):
        self.maxDiff = None
        self.current_dir = os.getcwd()
        self.spider = DuckduckgoSpider()

    def test_should_parser_item_from_response(self):
        links = parser.get_links(
            load_file('tests/resources/results.html')
        )
        self.assertEqual(len(links), 30)


if __name__ == '__main__':
    unittest.main()
