def test_maple_search_exclude_pass(self): steps = Steps() self.kwargs.update({'steps': steps, 'search_string': self.execute_output_1, 'device': self.dev, 'exclude': ['\s*\bSel-Num\b.*']}) maple_search(**self.kwargs) self.assertEqual(steps.result, Passed)
def test_maple_search_exclude_fail(self): steps = Steps() self.kwargs.update({'steps': steps, 'search_string': self.execute_output_1, 'device': self.dev, 'exclude': ['^(?=.*\b16006\b)(?=.*\bPop Label\b).*$']}) maple_search(**self.kwargs) self.assertEqual(steps.result, Failed)