aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_console_contentview.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2013-04-19 17:18:44 -0700
committerAldo Cortesi <aldo@corte.si>2013-04-19 17:18:44 -0700
commit793c41a5c475411df0ce8e24adec2219b6909934 (patch)
tree657c21b37890936a2d318cf00e960622d1d9d38c /test/test_console_contentview.py
parent7c4c6f5912a826efd83dec696b48ce1d9d1496ae (diff)
parentd4cfbbb822f786b7e1f0ab9282dd76ee04ccb178 (diff)
downloadmitmproxy-793c41a5c475411df0ce8e24adec2219b6909934.tar.gz
mitmproxy-793c41a5c475411df0ce8e24adec2219b6909934.tar.bz2
mitmproxy-793c41a5c475411df0ce8e24adec2219b6909934.zip
Merge pull request #112 from hamstah/protobuf-view
Adds a new view for protocol buffers
Diffstat (limited to 'test/test_console_contentview.py')
-rw-r--r--test/test_console_contentview.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_console_contentview.py b/test/test_console_contentview.py
index 77178842..1798ce85 100644
--- a/test/test_console_contentview.py
+++ b/test/test_console_contentview.py
@@ -234,6 +234,14 @@ if pyamf:
p = tutils.test_data.path("data/amf03")
assert v([], file(p).read(), sys.maxint)
+if cv.ViewProtobuf.is_available():
+ def test_view_protobuf_request():
+ v = cv.ViewProtobuf()
+
+ p = tutils.test_data.path("data/protobuf01")
+ content_type, output = v([], file(p).read(), sys.maxint)
+ assert content_type == "Protobuf"
+ assert output[0].text == '1: "3bbc333c-e61c-433b-819a-0b9a8cc103b8"'
def test_get_by_shortcut():
assert cv.get_by_shortcut("h")