mirror of https://github.com/MISP/PyMISP
fix: last_seen has to be after first_seen, and it should habe been failing before.
parent
0d8467920f
commit
0d67babea2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue