Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix system test broken by PR #3798. #3936

Merged
merged 1 commit into from
Sep 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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