From b61b00154114eb2624212396f886af7204e8bb81 Mon Sep 17 00:00:00 2001 From: fengyuanxing Date: Tue, 13 Mar 2018 10:49:37 +0800 Subject: [PATCH] Modify the code of scaling vnf Change-Id: I39f0126d8abe694e7bdf91bd487c123dcb8efd22 Issue-ID: VFC-784 Signed-off-by: fengyuanxing --- lcm/ns/tests/vnfs/tests.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lcm/ns/tests/vnfs/tests.py b/lcm/ns/tests/vnfs/tests.py index 9650ed45..4d4f84ba 100644 --- a/lcm/ns/tests/vnfs/tests.py +++ b/lcm/ns/tests/vnfs/tests.py @@ -373,10 +373,7 @@ class TestScaleVnfViews(TestCase): NFManualScaleService(self.nf_inst_id, req_data).run() nsIns = NfInstModel.objects.filter(nfinstid=self.nf_inst_id) - if nsIns: - self.failUnlessEqual(1, 1) - else: - self.failUnlessEqual(1, 0) + self.assertIsNotNone(nsIns) class TestHealVnfViews(TestCase): -- 2.16.6