Fixed an invalid assertion

- attribute count is None not u'0' when no attributes exist (should be fixed on MISP side in the long run)
pull/3/head
iglocska 2015-11-13 10:49:03 +01:00
parent fc1193e53e
commit dbe87b6ebd
1 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,6 @@ import time
import unittest import unittest
class TestBasic(unittest.TestCase): class TestBasic(unittest.TestCase):
def setUp(self): def setUp(self):
@ -34,7 +33,7 @@ class TestBasic(unittest.TestCase):
event = self.misp.new_event(0, 1, 0, "This is a test") event = self.misp.new_event(0, 1, 0, "This is a test")
event_id = self._clean_event(event) event_id = self._clean_event(event)
to_check = {u'Event': {u'info': u'This is a test', u'locked': False, 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'ShadowAttribute': [], u'published': False,
u'distribution': u'0', u'Attribute': [], u'proposal_email_lock': False, u'distribution': u'0', u'Attribute': [], u'proposal_email_lock': False,
u'threat_level_id': u'1'}} u'threat_level_id': u'1'}}