<commit_before>import unittest

from dict_utils import dict_utils

class DictUtilsTestCase(unittest.TestCase):

    def test_dict_search(self):
        pass<commit_msg>Add some tests for the implemented methods<commit_after>import unittest

from dict_utils import dict_utils

class DictUtilsTestCase(unittest.TestCase):

    def test_dict_search_found(self):
        dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'Age': 30}}}
        found_value = dict_utils.dict_search_value(dict_1, 'name')
        self.assertEqual(found_value, 'Joe', 'Key not found in the given dict')

    def test_dict_search_not_found(self):
        dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'Age': 30}}}
        found_value = dict_utils.dict_search_value(dict_1, 'address')
        self.assertNotEquals(found_value, 'London (UK)', 'Key not found in the given dict')

    def test_dict_search_different_value(self):
        dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'Age': 30}}}
        found_value = dict_utils.dict_search_value(dict_1, 'name')
        self.assertNotEquals(found_value, 'Paul', 'Found value is not different')

    def test_compare_assert_dicts_identical(self):
        dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'Age': 30}}}
        dict_2 = {'first_level': {'second_level': {'name': 'Joe', 'Age': 30}}}
        dict_utils.compare_assert_dicts(self, ['name', 'age'], dict_1, dict_2)

    def test_compare_assert_dicts_different_same_values(self):
        dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'Age': 30}}}
        dict_2 = {'level_1': {'level_2': {'name': 'Joe', 'Age': 30}}}
        dict_utils.compare_assert_dicts(self, ['name', 'age'], dict_1, dict_2)

    def test_compare_assert_dicts_different_keys_structure_same_values(self):
        dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'Age': 30}}}
        dict_2 = {'level_1': {'name': 'Joe', 'Age': 30}}
        dict_utils.compare_assert_dicts(self, ['name', 'age'], dict_1, dict_2)
{'fraction_non_alphanumeric': 0.15693069306930693, 'fraction_numerical': 0.019306930693069307, 'mean_word_length': 4.582872928176796, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1172794', 'n_tokens_mistral': 704, 'n_tokens_neox': 656, 'n_words': 148}