From b80449b81a2deb3b6e2510a655de02f9375ef636 Mon Sep 17 00:00:00 2001 From: ERIMROB Date: Fri, 19 Jun 2020 13:09:44 +0100 Subject: [PMSH] Improve Failure Handling Signed-off-by: ERIMROB Change-Id: I15d338321957a293e9f444a10cf3bb06f4212f3e Issue-ID: DCAEGEN2-2157 --- components/pm-subscription-handler/tests/test_pmsh_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/pm-subscription-handler/tests/test_pmsh_utils.py') diff --git a/components/pm-subscription-handler/tests/test_pmsh_utils.py b/components/pm-subscription-handler/tests/test_pmsh_utils.py index cfb78def..1ea27a7c 100644 --- a/components/pm-subscription-handler/tests/test_pmsh_utils.py +++ b/components/pm-subscription-handler/tests/test_pmsh_utils.py @@ -137,8 +137,8 @@ class PmshUtilsTestCase(TestCase): 'https://node:30226/events/org.onap.dmaap.mr.PM_SUBSCRIPTIONS/' 'dcae_pmsh_cg/1?timeout=1000', json={"dummy_val": "43c4ee19-6b8d-4279-a80f-c507850aae47"}, status=400) - mr_topic_data = policy_mr_sub.get_from_topic(1) - self.assertIsNone(mr_topic_data) + with self.assertRaises(Exception): + policy_mr_sub.get_from_topic(1) def test_get_db_connection_url_success(self): self.env = EnvironmentVarGuard() -- cgit 1.2.3-korg