Merge pull request #23 from iglocska/master

Should fix the test failures
pull/3/head
Alexandre Dulaunoy 2015-11-13 10:51:34 +01:00
commit cfc5f05998
1 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,6 @@ import time
import unittest
class TestBasic(unittest.TestCase):
def setUp(self):
@ -34,10 +33,10 @@ class TestBasic(unittest.TestCase):
event = self.misp.new_event(0, 1, 0, "This is a test")
event_id = self._clean_event(event)
to_check = {u'Event': {u'info': u'This is a test', u'locked': False,
u'attribute_count': u'0', u'analysis': u'0',
u'attribute_count': None, u'analysis': u'0',
u'ShadowAttribute': [], u'published': False,
u'distribution': u'0', u'Attribute': [], u'proposal_email_lock': False,
u'threat_level_id': u'1'}},
u'threat_level_id': u'1'}}
self.assertEqual(event, to_check, 'Failed at creating a new Event')
return int(event_id)