From bfebf1c0309abeff3f0cbe570fe2835a39a3748c Mon Sep 17 00:00:00 2001 From: Vu Cong Tuan Date: Tue, 13 Jun 2017 10:01:32 +0700 Subject: [PATCH] Replace assertEqual([], items) with assertEmpty(items) Since assertEmpty() function has already been implemented in tempest, let's use this function instead of generic assertEqual() function. This change makes the code and the error messages to be more readable. Therefore it improves maintainability a little bit. Change-Id: I9f9314baaca3482ce7524675bbcce5da81e82e7a --- test/tempest/tempest/api/daisy/v1/test_logical_network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tempest/tempest/api/daisy/v1/test_logical_network.py b/test/tempest/tempest/api/daisy/v1/test_logical_network.py index d7cbdff5..5742a33c 100755 --- a/test/tempest/tempest/api/daisy/v1/test_logical_network.py +++ b/test/tempest/tempest/api/daisy/v1/test_logical_network.py @@ -292,8 +292,8 @@ class TecsLogicalNetworkTest(base.BaseDaisyTest): u'vni_range': [None, None]} self.assertEqual(default_networking_parameters, cluster_meta.get('networking_parameters', None)) - self.assertEqual([], cluster_meta.get('logic_networks', None)) - self.assertEqual([], cluster_meta.get('routers', None)) + self.assertEmpty(cluster_meta.get('logic_networks', None)) + self.assertEmpty(cluster_meta.get('routers', None)) self.delete_cluster(cluster_info.id)