def METHOD_NAME(self):
    self.patch_object(
        run_report,
        'get_event_report',
        return_value={'myreport': 'thereport'})
    self.assertEqual(
        run_report.get_yaml_event_report(),
        'myreport: thereport\n')