diff options
Diffstat (limited to 'python/subunit/content.py')
| -rw-r--r-- | python/subunit/content.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/subunit/content.py b/python/subunit/content.py index d7d3893..5961e24 100644 --- a/python/subunit/content.py +++ b/python/subunit/content.py @@ -50,6 +50,10 @@ class Content(object): """Iterate over bytestrings of the serialised content.""" return self._get_bytes() + def __repr__(self): + return "<Content type=%r, value=%r>" % ( + self.content_type, ''.join(self.iter_bytes())) + class TracebackContent(Content): """Content object for tracebacks. |
