def METHOD_NAME(self):
    """
    Test view creation.
    """
    bq = BQTableView(
        bq_dataset=BQ_DATASET,
        catalog_taxonomy=TAXONOMY_DISPLAY_NAME,
        location=LOCATION,
        bq_project=BQ_PROJECT,
        catalog_project=CATALOG_PROJECT,
        json_credentials_path=JSON_CREDENTIALS_FILE,
    )
    bq.fetch_policy_tags()
    SOURCE_TABLE = "test_table"
    VIEW1 = "test_view_medium"
    VIEW1_TAGS = ["medium", "low"]
    query = bq.create_view(SOURCE_TABLE, VIEW1, VIEW1_TAGS)
    self.assertTrue(
        query.strip()
        == "SELECT column2, column1, STRUCT(parent.nested2)  as parent FROM `{project}.{dataset}.{table}`".format(
            project=bq.bq_project, dataset=bq.dataset, table=SOURCE_TABLE
        )
    )