예제 #1
0
 def test_process_args_terms(self):
     logic, terms = logfind.process_args(['term1', 'term2' , '*', 'a*b'])
     self.assertEqual(terms, ['term1', 'term2', '*', 'a*b'])
예제 #2
0
 def test_process_args_terms_or(self):
     
     self.assertEqual(logfind.process_args(['term1', 'term2' , '*', 'a*b', '-o']), (any, ['term1', 'term2', '*', 'a*b']))
예제 #3
0
 def test_process_args_with_or(self):
     logic, terms = logfind.process_args(['term1', 'term2', '-o'])
     self.assertEqual(logic, any)