'Check each artifact we have passes validation.'

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)
