# Path: tests/test_ipuz.py
# class IPUZBaseTestCase(unittest.TestCase):
# 
#     def validate_puzzle(self, json_data, expected_exception, **kwargs):
#         with self.assertRaises(ipuz.IPUZException) as cm:
#             ipuz.read(json.dumps(json_data), **kwargs)
#         self.assertEqual(str(cm.exception), expected_exception)
# 
#     def validate(self, expected_exception):
#         self.validate_puzzle(self.puzzle, expected_exception)


from .test_ipuz import IPUZBaseTestCase
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_hints_element(self):
        self.puzzle["clues"] = {"Across": [{"hints": [3]}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_image(self):
        self.puzzle["clues"] = {"Across": [{"image": 3}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_answer(self):
        self.puzzle["clues"] = {"Across": [{"answer": 3}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_enumeration(self):
        self.puzzle["clues"] = {"Across": [{"enumeration": 3}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_references_list(self):
        self.puzzle["clues"] = {"Across": [{"references": 3}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_references(self):
        self.puzzle["clues"] = {"Across": [{"references": [True]}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_see(self):
        self.puzzle["clues"] = {"Across": [{"see": None}]}
        self.validate("Invalid Clue in clues element found")


# Path: tests/test_ipuz.py
# class IPUZBaseTestCase(unittest.TestCase):
# 
#     def validate_puzzle(self, json_data, expected_exception, **kwargs):
#         with self.assertRaises(ipuz.IPUZException) as cm:
#             ipuz.read(json.dumps(json_data), **kwargs)
#         self.assertEqual(str(cm.exception), expected_exception)
# 
#     def validate(self, expected_exception):
#         self.validate_puzzle(self.puzzle, expected_exception)


# Path: tests/test_crossword.py
from .test_ipuz import IPUZBaseTestCase

        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_hints_element(self):
        self.puzzle["clues"] = {"Across": [{"hints": [3]}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_image(self):
        self.puzzle["clues"] = {"Across": [{"image": 3}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_answer(self):
        self.puzzle["clues"] = {"Across": [{"answer": 3}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_enumeration(self):
        self.puzzle["clues"] = {"Across": [{"enumeration": 3}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_references_list(self):
        self.puzzle["clues"] = {"Across": [{"references": 3}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_references(self):
        self.puzzle["clues"] = {"Across": [{"references": [True]}]}
        self.validate("Invalid Clue in clues element found")

    def test_clues_element_not_a_valid_clue_dict_invalid_see(self):
        self.puzzle["clues"] = {"Across": [{"see": None}]}
        self.validate("Invalid Clue in clues element found")


    def test_clues_element_not_a_valid_clue_dict_invalid_highlight(self):