From c9db0317acbe80940e0e5dbd67efb07848f5c1a0 Mon Sep 17 00:00:00 2001 From: peusterm Date: Mon, 14 Mar 2016 11:25:19 +0100 Subject: [PATCH] bugfix, changed api --- src/emuvim/test/test_resourcemodel_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1