Update tests.

Fix #86
pull/55/head
Raphaël Vinot 2017-02-23 14:42:33 +01:00
parent 9d388cf24c
commit 402018e528
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class TestOffline(unittest.TestCase):
self.assertEqual(error, response)
def test_newEvent(self, m):
error_empty_info = {'message': 'The event could not be saved.', 'name': 'Add event failed.', 'errors': {'Event': {'info': ['Info cannot be empty.']}}, 'url': '/events/add'}
error_empty_info = {'message': 'The event could not be saved.', 'name': 'Add event failed.', 'errors': ['Error in info: Info cannot be empty.'], 'url': '/events/add'}
error_empty_info_flatten = {u'message': u'The event could not be saved.', u'name': u'Add event failed.', u'errors': [u"Error in info: Info cannot be empty."], u'url': u'/events/add'}
self.initURI(m)
pymisp = PyMISP(self.domain, self.key)