diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-04-02 08:28:12 +0000 |
---|---|---|
committer | Bin Yang <bin.yang@windriver.com> | 2019-04-02 08:28:12 +0000 |
commit | feec0bcd53f24b0383f9f2db3a7837fa08525947 (patch) | |
tree | 3d8bd59c4cad6c2926735198e73634969b9aee2b /lenovo/thinkcloud/registration/tests/test_registration2.py | |
parent | 3176e57da097f2c238b134f18b1a4af00e105546 (diff) |
Refactor helper codes
Move helper thread to common module
Refactor the interface between helper thread and worker
Change-Id: I0b61a2ed1a428f67cfbe3cc1411ace39e245932d
Issue-ID: MULTICLOUD-554
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'lenovo/thinkcloud/registration/tests/test_registration2.py')
-rw-r--r-- | lenovo/thinkcloud/registration/tests/test_registration2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lenovo/thinkcloud/registration/tests/test_registration2.py b/lenovo/thinkcloud/registration/tests/test_registration2.py index 7abd6073..f49b023f 100644 --- a/lenovo/thinkcloud/registration/tests/test_registration2.py +++ b/lenovo/thinkcloud/registration/tests/test_registration2.py @@ -92,12 +92,12 @@ class TestRegistration2(unittest.TestCase): } ) - resp = self.view.register_helper._discover_flavors( + retcode, content = self.view.register_helper._discover_flavors( vimid="lenovo-hudson-dc_RegionOne", session=mock_session, viminfo=MOCK_VIM_INFO ) - self.assertIsNone(resp) + self.assertEquals(retcode, 0) def test_discover_flavors_w_hpa_numa(self): restcall.req_to_aai = mock.Mock() @@ -112,9 +112,9 @@ class TestRegistration2(unittest.TestCase): } ), - resp = self.view.register_helper._discover_flavors( + retcode, content = self.view.register_helper._discover_flavors( vimid="lenovo-hudson-dc_RegionOne", session=mock_session, viminfo=MOCK_VIM_INFO ) - self.assertIsNone(resp) + self.assertEquals(retcode, 11) |