def test_should_return_one_row_as_result(self): expected_result = [{'instance_id': 'id_1', 'tag_Two':'two'}] search_results = [ {'instance_id': 'id_1', 'tag_Two':'two'}, {'instance_id': 'id_1', 'tag_One':'one', 'tag_Two':'two'} ] instance_report = InstanceReport(config="config/total_report.conf") index, title, emails, tags = instance_report.load_app_config(app_folder='test_splunk/etc/apps/app5') filtered_results = instance_report.filter_results(search_results=search_results, tags_map=tags) self.assertEqual(expected_result, filtered_results)