'Check & compare output of the task'

def assert_task_output(self, output, **expected_output):

    self.assertEqual(output.get('total'), expected_output.get('total'))
    self.assertEqual(output.get('attempted'), expected_output.get('attempted'))
    self.assertEqual(output.get('succeeded'), expected_output.get('succeeded'))
    self.assertEqual(output.get('skipped'), expected_output.get('skipped'))
    self.assertEqual(output.get('failed'), expected_output.get('failed'))
    self.assertEqual(output.get('action_name'), expected_output.get('action_name'))
    self.assertGreater(output.get('duration_ms'), expected_output.get('duration_ms', 0))
