def testArtifactsValidate(self):

    for artifact in artifact_registry.REGISTRY.GetArtifacts():
      artifact.Validate()

    art_obj = artifact_registry.REGISTRY.GetArtifact("TestCmdArtifact")
    art_obj.labels.append("BadLabel")

    self.assertRaises(artifact_registry.ArtifactDefinitionError,
                      art_obj.Validate)
Attempts to convert an object to a UTC datetime.
dataset/ETHPy150Open google/grr/grr/lib/artifact_utils_test.py/ArtifactHandlingTest.testArtifactsValidate--crossover with--dataset/ETHPy150Open twosigma/ngrid/ngrid/datetime.py/ensure_datetime