diff --git a/tests/certbund_contact/test_annotations.py b/tests/certbund_contact/test_annotations.py index 3b3f2fb..bef1f0f 100644 --- a/tests/certbund_contact/test_annotations.py +++ b/tests/certbund_contact/test_annotations.py @@ -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)