def test_no_filter(self): # with No filter filtered_out = apply_dictionary_filter(self.blitz_obj, output=self.dict_output) self.assertEqual(filtered_out, self.dict_output) filtered_out = apply_regex_filter(self.blitz_obj, output=self.str_output) self.assertEqual(filtered_out, self.str_output)
def test_dq_filter(self): filters = "contains('software')" filtered_out = apply_dictionary_filter(self.blitz_obj, self.dict_output, filters) self.assertEqual(filtered_out, {'platform': {'software': {'bios_version': '07.33', 'system_version': '9.3(3) [build 9.3(3)IDI9(0.509)]', 'bios_compile_time': '08/04/2015', 'system_image_file': 'bootflash:///system-image-N93_3-00613722415136', 'system_compile_time': '10/22/2019 10:00:00 [10/22/2019 16:57:31]'}}})