def test_process_args_terms(self): logic, terms = logfind.process_args(['term1', 'term2' , '*', 'a*b']) self.assertEqual(terms, ['term1', 'term2', '*', 'a*b'])
def test_process_args_terms_or(self): self.assertEqual(logfind.process_args(['term1', 'term2' , '*', 'a*b', '-o']), (any, ['term1', 'term2', '*', 'a*b']))
def test_process_args_with_or(self): logic, terms = logfind.process_args(['term1', 'term2', '-o']) self.assertEqual(logic, any)