fix: last_seen has to be after first_seen, and it should habe been failing before.

pull/660/head
Raphaël Vinot 2020-11-06 11:17:46 +01:00
parent 0d8467920f
commit 0d67babea2
1 changed files with 1 additions and 0 deletions

View File

@ -2283,6 +2283,7 @@ class TestComprehensive(unittest.TestCase):
# Attribute in object only
now = datetime.now().astimezone()
attr = obj.attributes[0]
attr.first_seen = '2020-01-04'
attr.last_seen = now
attr = self.admin_misp_connector.update_attribute(attr, pythonify=True)
self.assertEqual(attr.last_seen, now)