<commit_before>import os
import unittest

from recipe_scrapers.kennymcgovern import KennyMcGovern


class TestKennyMcGovernScraper(unittest.TestCase):
    def setUp(self):
        # tests are run from tests.py
        with open(os.path.join(
            os.path.dirname(os.path.realpath(__file__)),
            'test_data',
            'kennymcgovern.testhtml'
        )) as file_opened:
            self.harvester_class = KennyMcGovern(file_opened, test=True)

    def test_host(self):
        self.assertEqual(
            'kennymcgovern.com',
            self.harvester_class.host()
        )

    def test_title(self):
        self.assertEqual(
            self.harvester_class.title(),
            'Crispy Chicken Strips'
        )

    def test_total_time(self):
        self.assertEqual(
            16,
            self.harvester_class.total_time()
        )

    def test_yields(self):
        self.assertEqual("1 serving(s)", self.harvester_class.yields())

    def test_ingredients(self):
        self.assertCountEqual(
            [
                '8 tablespoons panko breadcrumbs',
                '4 tablespoons plain flour',
                '1/4 teaspoon garlic powder',
                '1/4 teaspoon onion granules',
                '1/4 teaspoon cayenne pepper',
                '1/4 teaspoon dried Italian herbs',
                '1/2 teaspoon sea salt',
                '1/4 teaspoon black pepper',
                '4 tablespoons plain flour',
                '1/4 teaspoon sea salt',
                'Pinch black pepper',
                '1 egg',
                '3 tablespoons milk',<commit_msg>Add test coverage for image URL<commit_after>import os
import unittest

from recipe_scrapers.kennymcgovern import KennyMcGovern


class TestKennyMcGovernScraper(unittest.TestCase):
    def setUp(self):
        # tests are run from tests.py
        with open(os.path.join(
            os.path.dirname(os.path.realpath(__file__)),
            'test_data',
            'kennymcgovern.testhtml'
        )) as file_opened:
            self.harvester_class = KennyMcGovern(file_opened, test=True)

    def test_host(self):
        self.assertEqual(
            'kennymcgovern.com',
            self.harvester_class.host()
        )

    def test_title(self):
        self.assertEqual(
            self.harvester_class.title(),
            'Crispy Chicken Strips'
        )

    def test_image(self):
        self.assertEqual(
            self.harvester_class.image(),
            'https://kennymcgovern.com/wp-content/uploads/2020/02/crispy-chicken-strips-960x720.jpg'
        )

    def test_total_time(self):
        self.assertEqual(
            16,
            self.harvester_class.total_time()
        )

    def test_yields(self):
        self.assertEqual("1 serving(s)", self.harvester_class.yields())

    def test_ingredients(self):
        self.assertCountEqual(
            [
                '8 tablespoons panko breadcrumbs',
                '4 tablespoons plain flour',
                '1/4 teaspoon garlic powder',
                '1/4 teaspoon onion granules',
                '1/4 teaspoon cayenne pepper',
                '1/4 teaspoon dried Italian herbs',
                '1/2 teaspoon sea salt',
                '1/4 teaspoon black pepper',
                '4 tablespoons plain flour',
                '1/4 teaspoon sea salt',
                'Pinch black pepper',
                '1 egg',
                '3 tablespoons milk',
{'fraction_non_alphanumeric': 0.09224985540775014, 'fraction_numerical': 0.016194331983805668, 'mean_word_length': 1.7214791502753737, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3215065', 'n_tokens_mistral': 1067, 'n_tokens_neox': 943, 'n_words': 211}