Ejemplo n.º 1
0
 def test_get_task_result_positive(self):
     """Test get_task_result method positive result."""
     obj = TaskManager()
     obj._results_by_task_id = {"task_id": "result"}
     obj.get_task_result("task_id")
Ejemplo n.º 2
0
 def test_get_task_result_id_not_present(self):
     """Test get_task_result method id not present."""
     obj = TaskManager()
     with self.assertRaises(ValueError):
         obj.get_task_result("task_id")