diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 14:58:48 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 14:58:48 +0100 |
commit | 43c3e164ecf13b2d0909f748c2c61f39e197659e (patch) | |
tree | c3dd47b72a40416706518904f557b763f38e999b /netlib/test/http/test_user_agents.py | |
parent | 33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04 (diff) | |
parent | aafa69a73829a7ec291a2d6fa0c4522caf287d17 (diff) | |
download | mitmproxy-43c3e164ecf13b2d0909f748c2c61f39e197659e.tar.gz mitmproxy-43c3e164ecf13b2d0909f748c2c61f39e197659e.tar.bz2 mitmproxy-43c3e164ecf13b2d0909f748c2c61f39e197659e.zip |
add netlib
Diffstat (limited to 'netlib/test/http/test_user_agents.py')
-rw-r--r-- | netlib/test/http/test_user_agents.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/netlib/test/http/test_user_agents.py b/netlib/test/http/test_user_agents.py new file mode 100644 index 00000000..0bf1bba7 --- /dev/null +++ b/netlib/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("_") |