diff options
author | Kubi <jean.gaoliang@huawei.com> | 2017-01-19 07:35:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-19 07:35:55 +0000 |
commit | fd1d3c0504c5e5b153b78bd0d5bd8fe3f4bc37d4 (patch) | |
tree | 764c4ca7db6b8c589a0ac24d715bc6b369a4233e /tests/unit | |
parent | cd36791a022aefc54eb258d62037274f7065a399 (diff) | |
parent | b56008ed0978632063f6dd9653f9d7a2070e2727 (diff) |
Merge "Re-factor Node.py to use better python inbuilt functions"
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/benchmark/contexts/test_node.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/benchmark/contexts/test_node.py b/tests/unit/benchmark/contexts/test_node.py index de5ba7066..64fe4a566 100644 --- a/tests/unit/benchmark/contexts/test_node.py +++ b/tests/unit/benchmark/contexts/test_node.py @@ -42,7 +42,7 @@ class NodeContextTestCase(unittest.TestCase): 'file': self._get_file_abspath("error_file") } - self.assertRaises(SystemExit, self.test_context.init, attrs) + self.assertRaises(IOError, self.test_context.init, attrs) def test_successful_init(self): @@ -100,7 +100,7 @@ class NodeContextTestCase(unittest.TestCase): attr_name = 'node1.foo' - self.assertRaises(SystemExit, self.test_context._get_server, attr_name) + self.assertRaises(ValueError, self.test_context._get_server, attr_name) def test__get_server_found(self): |