From cbaf4e2cc0a3f5e8cde2c1d4c420b10828c311e5 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Fri, 15 Sep 2017 09:57:26 -0700 Subject: [PATCH] BQ: Remove references to table.name --- bigquery/tests/system.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bigquery/tests/system.py b/bigquery/tests/system.py index e530f14c8dc0..980001a992ed 100644 --- a/bigquery/tests/system.py +++ b/bigquery/tests/system.py @@ -205,7 +205,7 @@ def test_create_table(self): table.create() self.to_delete.insert(0, table) self.assertTrue(table.exists()) - self.assertEqual(table.name, TABLE_NAME) + self.assertEqual(table.table_id, TABLE_NAME) def test_list_tables(self): DATASET_ID = _make_dataset_id('list_tables') @@ -240,7 +240,7 @@ def test_list_tables(self): all_tables = list(iterator) self.assertIsNone(iterator.next_page_token) created = [table for table in all_tables - if (table.name in tables_to_create and + if (table.table_id in tables_to_create and table.dataset_id == DATASET_ID)] self.assertEqual(len(created), len(tables_to_create)) @@ -1167,7 +1167,7 @@ def test_create_table_insert_fetch_nested_schema(self): table.create() self.to_delete.insert(0, table) self.assertTrue(table.exists()) - self.assertEqual(table.name, table_name) + self.assertEqual(table.table_id, table_name) to_insert = [] # Data is in "JSON Lines" format, see http://jsonlines.org/