def test_reidentify_with_fpe(capsys): labeled_fpe_string = 'My SSN is SSN_TOKEN(9):731997681' deid.reidentify_with_fpe(GCLOUD_PROJECT, labeled_fpe_string, surrogate_type=SURROGATE_TYPE, wrapped_key=WRAPPED_KEY, key_name=KEY_NAME, alphabet='NUMERIC') out, _ = capsys.readouterr() assert '731997681' not in out
def test_reidentify_with_fpe(capsys): labeled_fpe_string = 'My SSN is SSN_TOKEN(9):731997681' deid.reidentify_with_fpe( GCLOUD_PROJECT, labeled_fpe_string, surrogate_type=SURROGATE_TYPE, wrapped_key=WRAPPED_KEY, key_name=KEY_NAME, alphabet='NUMERIC') out, _ = capsys.readouterr() assert '731997681' not in out
def test_reidentify_with_fpe(capsys): labeled_fpe_string = "My SSN is SSN_TOKEN(9):731997681" deid.reidentify_with_fpe( GCLOUD_PROJECT, labeled_fpe_string, surrogate_type=SURROGATE_TYPE, wrapped_key=WRAPPED_KEY, key_name=KEY_NAME, alphabet=google.cloud.dlp_v2.CharsToIgnore.CommonCharsToIgnore.NUMERIC, ) out, _ = capsys.readouterr() assert "731997681" not in out