Merge "Fix assertTrue in verifying whether data type is list"
This commit is contained in:
commit
889e1211d7
@ -90,5 +90,5 @@ class TestVnfPackage(SqlTestCase):
|
||||
vnf_pack_list_obj = objects.VnfPackagesList(self.context)
|
||||
result = vnf_package._make_vnf_packages_list(
|
||||
self.context, vnf_pack_list_obj, response, None)
|
||||
self.assertTrue(isinstance(result, objects.VnfPackagesList))
|
||||
self.assertIsInstance(result, objects.VnfPackagesList)
|
||||
self.assertTrue(result.objects[0].id)
|
||||
|
@ -122,7 +122,7 @@ class TestVnfPackage(SqlTestCase):
|
||||
def test_get_all(self):
|
||||
result = objects.VnfPackagesList.get_all(self.context,
|
||||
expected_attrs=None)
|
||||
self.assertTrue(result.objects, list)
|
||||
self.assertIsInstance(result.objects, list)
|
||||
self.assertTrue(result.objects)
|
||||
|
||||
def test_get_by_id_with_flavours(self):
|
||||
|
Loading…
Reference in New Issue
Block a user