

def testArtifactConversion(self):
    for art_obj in artifact_registry.REGISTRY.GetArtifacts():
        art_json = art_obj.ToPrettyJson(extended=False)
        new_art_obj = artifact_registry.REGISTRY.ArtifactsFromYaml(art_json)[0]
        self.assertEqual(new_art_obj.ToPrimitiveDict(), art_obj.ToPrimitiveDict())

dataset/ETHPy150Open google/grr/grr/lib/artifact_utils_test.py ArtifactHandlingTest.testArtifactConversion/original