Skip to content

Commit

Permalink
fix: last_seen has to be after first_seen, and it should habe been fa…
Browse files Browse the repository at this point in the history
…iling before.
  • Loading branch information
Rafiot committed Nov 6, 2020
1 parent 0d84679 commit 0d67bab
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 @@ -2283,6 +2283,7 @@ def test_first_last_seen(self):
# 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)
Expand Down

0 comments on commit 0d67bab

Please sign in to comment.