From 1c80c2fdd7dd9873abc7b0a74936dab7beda7c5c Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 1 Sep 2012 23:04:44 +1200 Subject: Add a collection of standard User-Agent strings. These will be used in both mitmproxy and pathod. --- test/test_http_uastrings.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/test_http_uastrings.py (limited to 'test') 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("_") + -- cgit v1.2.3