From 93609fd4afb4ec5df14207a1bd9c694a9086789e Mon Sep 17 00:00:00 2001 From: Eyal Date: Sun, 9 Jul 2017 09:28:00 +0300 Subject: [PATCH] use assertIsNone Change-Id: Ib6451504530f932ebd63374618d213ff7086dd1c --- .../snmp_notifier/test_snmp_sender_without_severity_map.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_without_severity_map.py b/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_without_severity_map.py index 6c5c43ceb..1c3947dc9 100644 --- a/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_without_severity_map.py +++ b/vitrage/tests/unit/notifier/snmp_notifier/test_snmp_sender_without_severity_map.py @@ -72,7 +72,7 @@ class SnmpNotifierTest(base.BaseTest): alert_severity_oid = \ self.snmp_sender._get_severity_oid(common.alarm_data) - self.assertEqual(alert_severity_oid, None) + self.assertIsNone(alert_severity_oid) def test_get_alert_oid(self): @@ -94,4 +94,4 @@ class SnmpNotifierTest(base.BaseTest): self.snmp_sender._get_details(common.alarm_data) self.assertEqual(alert_details, common.alert_details) - self.assertEqual(alert_severity_oid, None) + self.assertIsNone(alert_severity_oid)