Skip to content

Commit

Permalink
chg: [tests] WTF upload_sample on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jul 5, 2019
1 parent 10bd88c commit c850ec2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testlive_comprehensive.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ def test_upload_sample(self):
response = self.user_misp_connector.upload_sample(filename='testfile.py', filepath_or_bytes=f.read(),
event_id=first.id)
self.assertTrue('message' in response, "Content of response: {}".format(response))
print(response)
self.assertEqual(response['message'], 'Success, saved all attributes.')
first = self.user_misp_connector.get_event(first.id)
self.assertEqual(len(first.objects), 1)
Expand Down

0 comments on commit c850ec2

Please sign in to comment.