summaryrefslogtreecommitdiff
path: root/python/subunit/content.py
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2009-10-24 20:10:23 +1100
committerRobert Collins <robertc@robertcollins.net>2009-10-24 20:10:23 +1100
commit2a9fac07e208637dcecf5d57fafa2b6bbbe0ef2c (patch)
tree9dce1aa801466cf3f9e94d14a3adaa582bd004f5 /python/subunit/content.py
parentab0aada6011a4d0db688de56cffef931d5585629 (diff)
downloadsubunit-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.py4
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.