def METHOD_NAME(self):
    with self.assertRaisesRegex(
        EnvironmentError, r"aaaaaa is not a valid git identifier \(branch name, tag name or commit id\)"
    ):
        _ = AutoConfig.from_pretrained(DUMMY_UNKNOWN_IDENTIFIER, revision="aaaaaa")