chg: [Travis] Add more debug

pull/471/head
Raphaël Vinot 2019-08-19 12:11:54 +02:00
parent b897dcf19c
commit 7a2fdd7d24
1 changed files with 1 additions and 0 deletions

View File

@ -1401,6 +1401,7 @@ class TestComprehensive(unittest.TestCase):
self.assertEqual(response['attributes'][0].value, '1.2.3.5')
self.assertEqual(response['attributes'][1].value, '1.2.3.6')
self.assertTrue(isinstance(response['attributes'][1].tags, list), response['attributes'][1].to_json())
self.assertTrue(len(response['attributes'][1].tags), response['attributes'][1].to_json())
self.assertEqual(response['attributes'][1].tags[0].name, 'tlp:amber___test')
self.assertEqual(response['errors']['attribute_0']['value'][0], 'A similar attribute already exists for this event.')
self.assertEqual(response['errors']['attribute_2']['value'][0], 'A similar attribute already exists for this event.')