projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added LICENSE file to root folder
[osm/MON.git]
/
osm_mon
/
test
/
OpenStack
/
unit
/
test_notifier.py
diff --git
a/osm_mon/test/OpenStack/unit/test_notifier.py
b/osm_mon/test/OpenStack/unit/test_notifier.py
index
f0fbf55
..
e2695d4
100644
(file)
--- a/
osm_mon/test/OpenStack/unit/test_notifier.py
+++ b/
osm_mon/test/OpenStack/unit/test_notifier.py
@@
-52,7
+52,7
@@
class Response(object):
class RFile():
def read(self, content_length):
class RFile():
def read(self, content_length):
- return
post_data
+ return
json.dumps(post_data, sort_keys=True)
class MockNotifierHandler(NotifierHandler):
class MockNotifierHandler(NotifierHandler):
@@
-98,7
+98,7
@@
class TestNotifier(unittest.TestCase):
self.handler.do_POST()
set_head.assert_called_once()
self.handler.do_POST()
set_head.assert_called_once()
- notify.assert_called_with(
json.dumps(post_data)
)
+ notify.assert_called_with(
post_data
)
@mock.patch.object(KafkaProducer, "publish_alarm_response")
@mock.patch.object(DatabaseManager, "get_alarm")
@mock.patch.object(KafkaProducer, "publish_alarm_response")
@mock.patch.object(DatabaseManager, "get_alarm")