From: peusterm Date: Mon, 14 Mar 2016 10:25:19 +0000 (+0100) Subject: bugfix, changed api X-Git-Tag: v3.1~163^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c9db0317acbe80940e0e5dbd67efb07848f5c1a0;p=osm%2Fvim-emu.git bugfix, changed api --- diff --git a/src/emuvim/test/test_resourcemodel_api.py b/src/emuvim/test/test_resourcemodel_api.py index f31f3e4..35b4dd5 100644 --- a/src/emuvim/test/test_resourcemodel_api.py +++ b/src/emuvim/test/test_resourcemodel_api.py @@ -35,7 +35,7 @@ class testResourceModel(SimpleTestTopology): assert(len(self.net.switches) == 1) # check resource model and resource model registrar assert(self.dc[0]._resource_model is not None) - assert(self.net.rm_registrar.num_models == 1) + assert(len(self.net.rm_registrar.resource_models) == 1) # check if alloc was called during startCompute assert(len(r.allocated_compute_instances) == 0)