diff options
author | fengyuanxing <feng.yuanxing@zte.com.cn> | 2018-03-06 16:21:42 +0800 |
---|---|---|
committer | fengyuanxing <feng.yuanxing@zte.com.cn> | 2018-03-06 16:21:42 +0800 |
commit | 2f113b19f3271933a230cc759264fc204672b49e (patch) | |
tree | 2595056475fc21d8862c5b204ef9472264cb8788 | |
parent | ca400cc8ffa90f96db2834d124b20510afa666f6 (diff) |
Add test case after refactoring code
Change-Id: Ibb07d332ca68b7c1affb890eb3e1b3367354f666
Issue-ID: VFC-784
Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
-rw-r--r-- | lcm/pub/tests/test_scaleaspect.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lcm/pub/tests/test_scaleaspect.py b/lcm/pub/tests/test_scaleaspect.py index bebfb429..81cfb9cb 100644 --- a/lcm/pub/tests/test_scaleaspect.py +++ b/lcm/pub/tests/test_scaleaspect.py @@ -1,5 +1,6 @@ from django.test import TestCase from lcm.pub.utils.scaleaspect import get_json_data +from lcm.pub.utils.scaleaspect import get_nsdId from lcm.pub.database.models import NfInstModel from lcm.pub.database.models import NSInstModel from lcm.pub.utils.timeutil import now_time @@ -99,3 +100,7 @@ class TestScaleAspect(TestCase): def tearDown(self): NSInstModel().clean() NfInstModel().clean() + + def test_get_nsdId(self): + nsd_id = get_nsdId("1") + self.assertEqual("23", nsd_id) |