Merge "Replace assertEqual([], items) with assertEmpty(items)"
This commit is contained in:
commit
f59ca384a2
|
@ -399,7 +399,7 @@ class LoadBalancersTestJSON(base.BaseTestCase):
|
|||
load_balancer = statuses['loadbalancer']
|
||||
self.assertEqual("ONLINE", load_balancer['operating_status'])
|
||||
self.assertEqual("ACTIVE", load_balancer['provisioning_status'])
|
||||
self.assertEqual([], load_balancer['listeners'])
|
||||
self.assertEmpty(load_balancer['listeners'])
|
||||
|
||||
@test.attr(type='smoke')
|
||||
def test_get_load_balancer_stats(self):
|
||||
|
|
|
@ -82,7 +82,7 @@ class TestPools(base.BaseTestCase):
|
|||
def test_list_pools_empty(self):
|
||||
"""Test get pools when empty"""
|
||||
pools = self.pools_client.list_pools()
|
||||
self.assertEqual([], pools)
|
||||
self.assertEmpty(pools)
|
||||
|
||||
def test_list_pools_one(self):
|
||||
"""Test get pools with one pool"""
|
||||
|
|
Loading…
Reference in New Issue