aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_http_uastrings.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-09-01 23:04:44 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-09-01 23:04:44 +1200
commit1c80c2fdd7dd9873abc7b0a74936dab7beda7c5c (patch)
treeeb891862c439a4da1250d1217794813ddfee45e1 /test/test_http_uastrings.py
parent33557245bf2212c08cd645bcf21a73b773646607 (diff)
downloadmitmproxy-1c80c2fdd7dd9873abc7b0a74936dab7beda7c5c.tar.gz
mitmproxy-1c80c2fdd7dd9873abc7b0a74936dab7beda7c5c.tar.bz2
mitmproxy-1c80c2fdd7dd9873abc7b0a74936dab7beda7c5c.zip
Add a collection of standard User-Agent strings.
These will be used in both mitmproxy and pathod.
Diffstat (limited to 'test/test_http_uastrings.py')
-rw-r--r--test/test_http_uastrings.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_http_uastrings.py b/test/test_http_uastrings.py
new file mode 100644
index 00000000..c70b7048
--- /dev/null
+++ b/test/test_http_uastrings.py
@@ -0,0 +1,7 @@
+from netlib import http_uastrings
+
+
+def test_get_shortcut():
+ assert http_uastrings.get_by_shortcut("c")[0] == "chrome"
+ assert not http_uastrings.get_by_shortcut("_")
+