aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/test_user_agents.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-14 23:02:14 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-22 15:30:51 +0200
commitf50deb7b763d093a22a4d331e16465a2fb0329cf (patch)
treea11e92fca2a0deffeb801cc6f931bd79aec0d669 /test/http/test_user_agents.py
parentbd5ee212840e3be731ea93e14ef1375745383d88 (diff)
downloadmitmproxy-f50deb7b763d093a22a4d331e16465a2fb0329cf.tar.gz
mitmproxy-f50deb7b763d093a22a4d331e16465a2fb0329cf.tar.bz2
mitmproxy-f50deb7b763d093a22a4d331e16465a2fb0329cf.zip
move bits around
Diffstat (limited to 'test/http/test_user_agents.py')
-rw-r--r--test/http/test_user_agents.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/http/test_user_agents.py b/test/http/test_user_agents.py
new file mode 100644
index 00000000..0bf1bba7
--- /dev/null
+++ b/test/http/test_user_agents.py
@@ -0,0 +1,6 @@
+from netlib.http import user_agents
+
+
+def test_get_shortcut():
+ assert user_agents.get_by_shortcut("c")[0] == "chrome"
+ assert not user_agents.get_by_shortcut("_")