def test_dq_filter_list_regex(self): list_output = ["aba", "yes"] filtered_out = apply_list_filter(self.blitz_obj, list_output, filters='yes') self.assertEqual(filtered_out, ["yes"]) filtered_out = apply_list_filter(self.blitz_obj, list_output, filters='\d') self.assertEqual(filtered_out, [])
def test_dq_filter_list_slice(self): list_output = [1,2,3,4,6,7,8,9999,854] list_index = "[1:4]" filtered_out = apply_list_filter(self.blitz_obj, list_output, list_index=list_index) self.assertEqual(filtered_out, [2,3,4])