Skip to content

Commit

Permalink
tests: add annotation test for emptry string expires field
Browse files Browse the repository at this point in the history
  • Loading branch information
wagner-intevation committed Jul 29, 2024
1 parent bf55644 commit 336e9be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/certbund_contact/test_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ def test_annotation_class_instantiation_no_condition(self):
def test_annotation_no_expiry(self):
self.assertFalse(Annotation("a").expired)

def test_annotation_no_expiry_empty_string(self):
self.assertFalse(Annotation("a", None, '').expired)
annotation = from_json(json.loads('{"tag": "bla"'
',"expired": ""}'))
self.assertFalse(annotation.expired)

def test_annotation_expired(self):
self.assertFalse(Annotation("a", None, "9999-99-99").expired)

Expand Down

0 comments on commit 336e9be

Please sign in to comment.