

def testValidateSyntaxBadProvides(self):
    sources = [{
        'type': artifact_registry.ArtifactSource.SourceType.FILE,
        'attributes': {
            'paths': ['%%environ_systemdrive%%\\Temp'],
        },
    }]
    artifact = artifact_registry.Artifact(name='bad', doc='Doco', provides=['windir'], supported_os=['Windows'], urls=['http://blah'], sources=sources)
    with self.assertRaises(artifact_registry.ArtifactDefinitionError):
        artifact.ValidateSyntax()

dataset/ETHPy150Open google/grr/grr/lib/artifact_utils_test.py ArtifactTests.testValidateSyntaxBadProvides/original