Fix tests

pull/25/head
Raphaël Vinot 2016-08-12 14:30:50 +02:00
parent 5a4fb267b5
commit 2722540322
1 changed files with 4 additions and 4 deletions

View File

@ -100,15 +100,15 @@ class TestBasic(unittest.TestCase):
def delete(self, eventid):
event = self.misp.delete_event(eventid)
print(event.json())
print(event)
def delete_attr(self, attrid):
event = self.misp.delete_attribute(attrid)
print(event.json())
print(event)
def get(self, eventid):
event = self.misp.get_event(eventid)
print(event.json())
print(event)
def get_stix(self, **kwargs):
event = self.misp.get_stix(kwargs)
@ -130,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)
def test_create_event(self):
eventid = self.new_event()