def METHOD_NAME(self, job, resource):
    from datetime import timedelta
    statistics = resource.get("statistics", {})
    if "creationTime" in statistics:
        self.assertEqual(job.created, self.WHEN)
    else:
        self.assertIsNone(job.created)
    if "startTime" in statistics:
        self.assertEqual(job.started, self.WHEN)
    else:
        self.assertIsNone(job.started)
    if "endTime" in statistics:
        self.assertEqual(job.ended, self.WHEN + timedelta(seconds=1000))
    else:
        self.assertIsNone(job.ended)
    if "etag" in resource:
        self.assertEqual(job.etag, self.ETAG)
    else:
        self.assertIsNone(job.etag)
    if "selfLink" in resource:
        self.assertEqual(job.self_link, self.RESOURCE_URL)
    else:
        self.assertIsNone(job.self_link)
    if "user_email" in resource:
        self.assertEqual(job.user_email, self.USER_EMAIL)
    else:
        self.assertIsNone(job.user_email)