#!/usr/bin/env python3

"""
This Python script is designed to perform unit testing of Wordhoard's
Homophones module.
"""
__author__ = '<NAME>'
__date__ = 'September 20, 2020'
__status__ = 'Quality Assurance'
__license__ = 'MIT'
__copyright__ = "Copyright (C) 2021 <NAME>"


import unittest
from wordhoard import Homophones


class TestHomophoneFunction(unittest.TestCase):

    def test_homophone_always_pass(self):
        """
        This test is designed to pass, because the word "horse" has a known Homophones
        and the default output format is a list
        :return:
        """
        self.assertIsInstance(Homophones('horse').find_homophones(), list)

    def test_homophone_always_fail(self):
        """
        This test is designed to fail, because the word "pig" has no known Homophones
        :return:
        """
        self.assertIsNone(Homophones('horse').find_homophones())


unittest.main()

#!/usr/bin/env python3

"""
This Python script is designed to perform unit testing of Wordhoard's
Homophones module.
"""
__author__ = '<NAME>'
__date__ = 'September 20, 2020'
__status__ = 'Quality Assurance'
__license__ = 'MIT'
__copyright__ = "Copyright (C) 2021 <NAME>"


import unittest
from wordhoard import Homophones


class TestHomophoneFunction(unittest.TestCase):

    def test_homophone_always_pass(self):
        """
        This test is designed to pass, because the word "horse" has a known Homophones
        and the default output format is a list
        :return:
        """
        self.assertIsInstance(Homophones('horse').find_homophones(), list)

    def test_homophone_always_fail(self):
        """
        This test is designed to fail, because the word "pig" has no known Homophones
        :return:
        """
        self.assertIsNone(Homophones('horse').find_homophones())


unittest.main()

#!/usr/bin/env python3 This Python script is designed to perform unit testing of Wordhoard's Homophones module. This test is designed to pass, because the word "horse" has a known Homophones         and the default output format is a list         :return: This test is designed to fail, because the word "pig" has no known Homophones         :return: