Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias alias alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr BoolOpOr CompareIn Str Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call NameLoad keyword TupleLoad Str Assign NameStore Call NameLoad keyword TupleLoad Str Str Assign NameStore Call NameLoad keyword TupleLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call NameLoad keyword TupleLoad Str Str Assign NameStore Call NameLoad keyword TupleLoad Str Str Str Assign NameStore Call NameLoad keyword TupleLoad Str Assign NameStore Call NameLoad keyword TupleLoad Str Assign NameStore Call NameLoad keyword TupleLoad Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr BoolOpOr CompareIn Str Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad Str Str Str Str Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr CompareIn SubscriptLoad NameLoad Index Str TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A unittest TestCase N/A unittest N/A re N/A six user_agent generate_user_agent generate_navigator generate_navigator_js UserAgentRuntimeError UserAgentInvalidRequirements UserAgentTestCase N/A TestCase N/A test_it N/A N/A self N/A N/A N/A ua N/A generate_user_agent N/A N/A N/A self assertTrue N/A N/A len ua 0 N/A test_platform_option N/A N/A self N/A N/A N/A x N/A range 100 N/A N/A ua N/A generate_user_agent platform linux N/A N/A N/A self assertTrue N/A linux N/A N/A ua lower N/A ua N/A generate_user_agent platform win N/A N/A N/A self assertTrue N/A windows N/A N/A ua lower N/A ua N/A generate_user_agent platform mac N/A N/A N/A self assertTrue N/A mac N/A N/A ua lower N/A N/A N/A self assertRaises UserAgentRuntimeError generate_user_agent platform 11 N/A test_navigator_option N/A N/A self N/A N/A N/A x N/A range 100 N/A N/A ua N/A generate_user_agent navigator firefox N/A N/A N/A self assertTrue N/A firefox N/A N/A ua lower N/A ua N/A generate_user_agent navigator chrome N/A N/A N/A self assertTrue N/A chrome N/A N/A ua lower N/A ua N/A generate_user_agent navigator ie N/A N/A N/A self assertTrue N/A N/A msie N/A N/A ua lower N/A rv:11 N/A N/A ua lower N/A test_navigator_option_tuple N/A N/A self N/A N/A N/A x N/A range 100 N/A N/A ua N/A generate_user_agent navigator N/A chrome N/A ua N/A generate_user_agent navigator N/A chrome firefox N/A ua N/A generate_user_agent navigator N/A chrome firefox ie N/A test_platform_option_tuple N/A N/A self N/A N/A N/A x N/A range 100 N/A N/A ua N/A generate_user_agent platform N/A win linux N/A ua N/A generate_user_agent platform N/A win linux mac N/A ua N/A generate_user_agent platform N/A win N/A ua N/A generate_user_agent platform N/A linux N/A ua N/A generate_user_agent platform N/A mac N/A test_platform_navigator_option N/A N/A self N/A N/A N/A x N/A range 100 N/A N/A ua N/A generate_user_agent platform win navigator firefox N/A N/A N/A self assertTrue N/A firefox N/A N/A ua lower N/A N/A N/A self assertTrue N/A windows N/A N/A ua lower N/A ua N/A generate_user_agent platform win navigator chrome N/A N/A N/A self assertTrue N/A chrome N/A N/A ua lower N/A N/A N/A self assertTrue N/A windows N/A N/A ua lower N/A ua N/A generate_user_agent platform win navigator ie N/A N/A N/A self assertTrue N/A N/A msie N/A N/A ua lower N/A rv:11 N/A N/A ua lower N/A N/A N/A self assertTrue N/A windows N/A N/A ua lower N/A test_platform_linux N/A N/A self N/A N/A N/A x N/A range 100 N/A N/A ua N/A generate_user_agent platform linux N/A N/A N/A self assertTrue N/A N/A ua startswith Mozilla/5.0 (X11; N/A test_mac_chrome N/A N/A self N/A N/A N/A x N/A range 100 N/A N/A ua N/A generate_user_agent platform mac navigator chrome N/A N/A N/A self assertTrue N/A N/A re search OS X \d+_\d+(_\d+\b|\b) ua N/A test_impossible_combination N/A N/A self N/A N/A N/A x N/A range 100 N/A N/A N/A N/A self assertRaises UserAgentInvalidRequirements generate_user_agent platform linux navigator ie N/A N/A N/A self assertRaises UserAgentInvalidRequirements generate_user_agent platform mac navigator ie N/A test_generate_navigator_js N/A N/A self N/A N/A N/A x N/A range 100 N/A N/A nav N/A generate_navigator_js N/A N/A N/A self assertEqual N/A set N/A appCodeName appName appVersion platform userAgent N/A set N/A N/A nav keys N/A N/A N/A self assertEqual N/A nav N/A appCodeName Mozilla N/A N/A N/A self assertTrue N/A N/A nav N/A appName N/A Netscape Microsoft Internet Explorer N/A test_data_integrity N/A N/A self N/A N/A N/A x N/A range 100 N/A N/A nav N/A generate_navigator N/A N/A key val N/A N/A nav items N/A N/A N/A N/A self assertTrue N/A isinstance val N/A six string_types N/A test_platform_value N/A N/A self N/A N/A N/A x N/A range 100 N/A N/A nav N/A generate_navigator platform win N/A N/A N/A self assertTrue N/A Win N/A nav N/A platform N/A nav N/A generate_navigator platform linux N/A N/A N/A self assertTrue N/A Linux N/A nav N/A platform N/A nav N/A generate_navigator platform win N/A N/A N/A self assertTrue N/A Win N/A nav N/A platform N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main