Add a __repr__ method to Document
This commit is contained in:
@@ -257,3 +257,12 @@ def test_content_length(es4_document: Es4Document) -> None:
|
||||
"""Test the content_length property"""
|
||||
|
||||
assert es4_document.content_length == 4
|
||||
|
||||
|
||||
def test_repr(es4_document: Es4Document) -> None:
|
||||
"""Test the __repr__ method of Es4Document"""
|
||||
|
||||
assert (
|
||||
repr(es4_document)
|
||||
== '<Es4Document /test.txt by @test.bcz76z52y5dlpohtkmpuj3jsdcvfmebzpcgfmtmhu4u7hlexzreya>'
|
||||
)
|
||||
|
Reference in New Issue
Block a user