diff options
| author | Robert Collins <robertc@robertcollins.net> | 2009-10-24 20:10:23 +1100 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2009-10-24 20:10:23 +1100 |
| commit | 2a9fac07e208637dcecf5d57fafa2b6bbbe0ef2c (patch) | |
| tree | 9dce1aa801466cf3f9e94d14a3adaa582bd004f5 /python/subunit/content.py | |
| parent | ab0aada6011a4d0db688de56cffef931d5585629 (diff) | |
| download | subunit-git-2a9fac07e208637dcecf5d57fafa2b6bbbe0ef2c.tar.gz | |
Move Failure reporting to the new details API.
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. |
