def test_inspect_table(capsys): test_tabular_data = { "header": [ "email", "phone number" ], "rows": [ [ "*****@*****.**", "4232342345" ], [ "*****@*****.**", "4253458383" ] ] } inspect_content.inspect_table( GCLOUD_PROJECT, test_tabular_data, ['PHONE_NUMBER', 'EMAIL_ADDRESS'], include_quote=True) out, _ = capsys.readouterr() assert 'Info type: PHONE_NUMBER' in out assert 'Info type: EMAIL_ADDRESS' in out
def test_inspect_table(capsys): test_tabular_data = { "header": [ "email", "phone number" ], "rows": [ [ "*****@*****.**", "4232342345" ], [ "*****@*****.**", "4253458383" ] ] } inspect_content.inspect_table( GCLOUD_PROJECT, test_tabular_data, ['PHONE_NUMBER', 'EMAIL_ADDRESS'], include_quote=True) out, _ = capsys.readouterr() assert 'Info type: PHONE_NUMBER' in out assert 'Info type: EMAIL_ADDRESS' in out