diff --git a/tests/test.py b/tests/test.py index 5d7c5f1..e05b857 100755 --- a/tests/test.py +++ b/tests/test.py @@ -1,5 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +from __future__ import print_function from pymisp import PyMISP from keys import url, key @@ -47,7 +48,7 @@ class TestBasic(unittest.TestCase): u'Org': {u'name': u'ORGNAME'}, u'Orgc': {u'name': u'ORGNAME'}, u'threat_level_id': u'1'}} - print event + print(event) self.assertEqual(event, to_check, 'Failed at creating a new Event') return int(event_id) @@ -99,15 +100,15 @@ class TestBasic(unittest.TestCase): def delete(self, eventid): event = self.misp.delete_event(eventid) - print event.json() + print(event.json()) def delete_attr(self, attrid): event = self.misp.delete_attribute(attrid) - print event.json() + print(event.json()) def get(self, eventid): event = self.misp.get_event(eventid) - print event.json() + print(event.json()) def get_stix(self, **kwargs): event = self.misp.get_stix(kwargs) @@ -129,7 +130,7 @@ class TestBasic(unittest.TestCase): u'ShadowAttribute': [], u'distribution': u'2', u'type': u'filename|sha256'}], u'proposal_email_lock': False, u'threat_level_id': u'1'}} event = self.misp.add_event(event) - print event.json() + print(event.json()) def test_create_event(self): eventid = self.new_event()