Skip to content

Commit

Permalink
Fix system test broken by PR #3798. (#3936)
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver authored and tswast committed Oct 12, 2017
1 parent daff546 commit 0379e77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bigquery/tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ def test_update_dataset(self):
self.to_delete.append(dataset)

self.assertTrue(dataset.exists())
after = [grant for grant in dataset.access_grants
if grant.entity_id != 'projectWriters']
dataset.access_grants = after
after = [entry for entry in dataset.access_entries
if entry.entity_id != 'projectWriters']
dataset.access_entries = after

retry_403(dataset.update)()

self.assertEqual(len(dataset.access_grants), len(after))
for found, expected in zip(dataset.access_grants, after):
self.assertEqual(len(dataset.access_entries), len(after))
for found, expected in zip(dataset.access_entries, after):
self.assertEqual(found.role, expected.role)
self.assertEqual(found.entity_type, expected.entity_type)
self.assertEqual(found.entity_id, expected.entity_id)
Expand Down

0 comments on commit 0379e77

Please sign in to comment.