mitmproxy/test/http/test_user_agents.py

7 lines
170 B
Python
Raw Normal View History

2015-07-14 21:02:14 +00:00
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("_")