mirror of https://github.com/MISP/PyMISP
Add new key in online test
parent
3d2d41525f
commit
2f967268d1
|
@ -42,12 +42,12 @@ 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': None, u'analysis': u'0',
|
u'attribute_count': None, 'disable_correlation': False, 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'Org': {u'name': u'ORGNAME'},
|
u'Org': {u'name': u'ORGNAME'},
|
||||||
u'Orgc': {u'name': u'ORGNAME'},
|
u'Orgc': {u'name': u'ORGNAME'},
|
||||||
u'Galaxy' : [],
|
u'Galaxy': [],
|
||||||
u'threat_level_id': u'1'}}
|
u'threat_level_id': u'1'}}
|
||||||
print(event)
|
print(event)
|
||||||
self.assertEqual(event, to_check, 'Failed at creating a new Event')
|
self.assertEqual(event, to_check, 'Failed at creating a new Event')
|
||||||
|
|
Loading…
Reference in New Issue