Skip to content

Commit a5379fa

Browse files
committed
Add assertions for page test
1 parent 28dc59c commit a5379fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_types.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ def test_path_parser():
6969
assert page.parsed_path is None
7070

7171
assert types.PagePath('page', 5, 11, 42).stringify() == 'page-11-05-42'
72+
73+
page = types.Page(path=None, content=None)
74+
assert page.parsed_path is None
75+
assert page.content is None

0 commit comments

Comments
 (0)