Example #1
0
 def test_args_valid(self):
     task = {'op': "myop", 'args': ["hello"]}
     self.assertTrue(main.validate_task(task, logger=logger))
Example #2
0
 def test_op_valid(self):
     task = {'op': "myop"}
     self.assertTrue(main.validate_task(task, logger=logger))
Example #3
0
 def test_args_invalid(self):
     task = {'op': "myop", 'args': "hello"}
     self.assertFalse(main.validate_task(task, logger=logger))
Example #4
0
 def test_op_invalid(self):
     task = {}
     self.assertFalse(main.validate_task(task, logger=logger))