Merge "Replace assertEqual([], items) with assertEmpty(items)"

This commit is contained in:
Jenkins 2017-06-14 14:28:03 +00:00 committed by Gerrit Code Review
commit 009d4b33d3
2 changed files with 4 additions and 4 deletions

View File

@ -217,7 +217,7 @@ class ShareGroupTypesTest(base.BaseSharesAdminTest):
# List projects that have access for share group type - none expected
access = self.shares_v2_client.list_access_to_share_group_type(sgt_id)
self.assertEqual([], access)
self.assertEmpty(access)
# Add project access to share group type
access = self.shares_v2_client.add_access_to_share_group_type(
@ -242,4 +242,4 @@ class ShareGroupTypesTest(base.BaseSharesAdminTest):
# List projects that have access for share group type - none expected
access = self.shares_v2_client.list_access_to_share_group_type(sgt_id)
self.assertEqual([], access)
self.assertEmpty(access)

View File

@ -160,7 +160,7 @@ class ShareTypesAdminTest(base.BaseSharesAdminTest):
# List projects that have access for share type - none expected
access = self.shares_v2_client.list_access_to_share_type(st_id)
self.assertEqual([], access)
self.assertEmpty(access)
# Add project access to share type
access = self.shares_v2_client.add_access_to_share_type(
@ -187,4 +187,4 @@ class ShareTypesAdminTest(base.BaseSharesAdminTest):
# List projects that have access for share type - none expected
access = self.shares_v2_client.list_access_to_share_type(st_id)
self.assertEqual([], access)
self.assertEmpty(access)