diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-09-01 23:04:44 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-09-01 23:04:44 +1200 |
commit | 1c80c2fdd7dd9873abc7b0a74936dab7beda7c5c (patch) | |
tree | eb891862c439a4da1250d1217794813ddfee45e1 /test/test_http_uastrings.py | |
parent | 33557245bf2212c08cd645bcf21a73b773646607 (diff) | |
download | mitmproxy-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.py | 7 |
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("_") + |