aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/test_user_agents.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-07-24 16:50:56 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-07-24 16:50:56 +0200
commitb57c1386a19f7faac50d0ad428afba18283d33c1 (patch)
treeb0303bf08c3429cd5d7f09ab38bebd052063f909 /test/http/test_user_agents.py
parent1b261613826565dc5453b2846904c23773243921 (diff)
parent657973eca3b091cdf07a65f8363affd3d36f0d0f (diff)
downloadmitmproxy-b57c1386a19f7faac50d0ad428afba18283d33c1.tar.gz
mitmproxy-b57c1386a19f7faac50d0ad428afba18283d33c1.tar.bz2
mitmproxy-b57c1386a19f7faac50d0ad428afba18283d33c1.zip
Merge pull request #81 from Kriechi/protocol-refactor
HTTP protocol refactoring
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("_")