diff options
author | fengyuanxing <feng.yuanxing@zte.com.cn> | 2018-03-13 10:49:37 +0800 |
---|---|---|
committer | fengyuanxing <feng.yuanxing@zte.com.cn> | 2018-03-13 10:49:37 +0800 |
commit | b61b00154114eb2624212396f886af7204e8bb81 (patch) | |
tree | f7f25909cc03a2a14ecba0f38f6d764c5285a5d1 | |
parent | 348d4624de3c1109741d3590b76cdb2949494f9d (diff) |
Modify the code of scaling vnf
Change-Id: I39f0126d8abe694e7bdf91bd487c123dcb8efd22
Issue-ID: VFC-784
Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
-rw-r--r-- | lcm/ns/tests/vnfs/tests.py | 5 |
1 files changed, 1 insertions, 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): |