def METHOD_NAME(self, ykman_cli, eccp256_keypair, tmp_file):
    private_key_file, public_key = eccp256_keypair
    ykman_cli(
        "hsmauth",
        "credentials",
        "import",
        "test-name-asym",
        "-c",
        "123456",
        "-m",
        DEFAULT_MANAGEMENT_KEY,
        private_key_file,
    )
    ykman_cli(
        "hsmauth",
        "credentials",
        "export",
        "test-name-asym",
        tmp_file.name,
    )
    public_key_from_file = tmp_file.read()
    assert public_key_from_file == public_key