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