Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Tests for extensions module. N/A unittest N/A zlib N/A set_sys_path mod_pywebsocket common mod_pywebsocket extensions ExtensionsTest N/A N/A unittest TestCase N/A N/A A unittest for non-class methods in extensions.py test_parse_window_bits N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits None N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits foobar N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits  8  N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits a8a N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits 00000 N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits 00008 N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits 0x8 N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits 9.5 N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits 8.0 N/A N/A N/A self assertTrue N/A extensions _parse_window_bits 8 N/A N/A N/A self assertTrue N/A extensions _parse_window_bits 15 N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits -8 N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits 0 N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits 7 N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits 16 N/A N/A N/A self assertRaises ValueError N/A extensions _parse_window_bits 10000000 N/A N/A DeflateFrameExtensionProcessorParsingTest N/A N/A unittest TestCase N/A N/A A unittest for checking that DeflateFrameExtensionProcessor parses given
    extension parameter correctly.
     test_registry N/A N/A self N/A N/A N/A processor N/A N/A extensions get_extension_processor N/A N/A common ExtensionParameter deflate-frame N/A N/A N/A self assertIsInstance processor N/A extensions DeflateFrameExtensionProcessor N/A processor N/A N/A extensions get_extension_processor N/A N/A common ExtensionParameter x-webkit-deflate-frame N/A N/A N/A self assertIsInstance processor N/A extensions DeflateFrameExtensionProcessor N/A test_minimal_offer N/A N/A self N/A N/A N/A processor N/A N/A extensions DeflateFrameExtensionProcessor N/A N/A common ExtensionParameter perframe-deflate N/A response N/A N/A processor get_extension_response N/A N/A N/A self assertEqual perframe-deflate N/A N/A response name N/A N/A N/A self assertEqual 0 N/A len N/A N/A response get_parameters N/A N/A N/A self assertEqual N/A zlib MAX_WBITS N/A N/A processor _rfc1979_deflater _window_bits N/A N/A N/A self assertFalse N/A N/A processor _rfc1979_deflater _no_context_takeover N/A test_offer_with_max_window_bits N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter perframe-deflate N/A N/A N/A parameter add_parameter max_window_bits 10 N/A processor N/A N/A extensions DeflateFrameExtensionProcessor parameter N/A response N/A N/A processor get_extension_response N/A N/A N/A self assertEqual perframe-deflate N/A N/A response name N/A N/A N/A self assertEqual 0 N/A len N/A N/A response get_parameters N/A N/A N/A self assertEqual 10 N/A N/A processor _rfc1979_deflater _window_bits N/A test_offer_with_out_of_range_max_window_bits N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter perframe-deflate N/A N/A N/A parameter add_parameter max_window_bits 0 N/A processor N/A N/A extensions DeflateFrameExtensionProcessor parameter N/A N/A N/A self assertIsNone N/A N/A processor get_extension_response N/A test_offer_with_max_window_bits_without_value N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter perframe-deflate N/A N/A N/A parameter add_parameter max_window_bits None N/A processor N/A N/A extensions DeflateFrameExtensionProcessor parameter N/A N/A N/A self assertIsNone N/A N/A processor get_extension_response N/A test_offer_with_no_context_takeover N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter perframe-deflate N/A N/A N/A parameter add_parameter no_context_takeover None N/A processor N/A N/A extensions DeflateFrameExtensionProcessor parameter N/A response N/A N/A processor get_extension_response N/A N/A N/A self assertEqual perframe-deflate N/A N/A response name N/A N/A N/A self assertEqual 0 N/A len N/A N/A response get_parameters N/A N/A N/A self assertTrue N/A N/A processor _rfc1979_deflater _no_context_takeover N/A test_offer_with_no_context_takeover_with_value N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter perframe-deflate N/A N/A N/A parameter add_parameter no_context_takeover foobar N/A processor N/A N/A extensions DeflateFrameExtensionProcessor parameter N/A N/A N/A self assertIsNone N/A N/A processor get_extension_response N/A test_offer_with_unknown_parameter N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter perframe-deflate N/A N/A N/A parameter add_parameter foo bar N/A processor N/A N/A extensions DeflateFrameExtensionProcessor parameter N/A response N/A N/A processor get_extension_response N/A N/A N/A self assertEqual perframe-deflate N/A N/A response name N/A N/A N/A self assertEqual 0 N/A len N/A N/A response get_parameters N/A N/A PerMessageDeflateExtensionProcessorParsingTest N/A N/A unittest TestCase N/A N/A A unittest for checking that PerMessageDeflateExtensionProcessor parses
    given extension parameter correctly.
     test_registry N/A N/A self N/A N/A N/A processor N/A N/A extensions get_extension_processor N/A N/A common ExtensionParameter permessage-deflate N/A N/A N/A self assertIsInstance processor N/A extensions PerMessageDeflateExtensionProcessor N/A test_minimal_offer N/A N/A self N/A N/A N/A processor N/A N/A extensions PerMessageDeflateExtensionProcessor N/A N/A common ExtensionParameter permessage-deflate N/A response N/A N/A processor get_extension_response N/A N/A N/A self assertEqual permessage-deflate N/A N/A response name N/A N/A N/A self assertEqual 0 N/A len N/A N/A response get_parameters N/A N/A N/A self assertEqual N/A zlib MAX_WBITS N/A N/A processor _rfc1979_deflater _window_bits N/A N/A N/A self assertFalse N/A N/A processor _rfc1979_deflater _no_context_takeover N/A test_offer_with_max_window_bits N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter permessage-deflate N/A N/A N/A parameter add_parameter server_max_window_bits 10 N/A processor N/A N/A extensions PerMessageDeflateExtensionProcessor parameter N/A response N/A N/A processor get_extension_response N/A N/A N/A self assertEqual permessage-deflate N/A N/A response name N/A N/A N/A self assertEqual N/A N/A server_max_window_bits 10 N/A N/A response get_parameters N/A N/A N/A self assertEqual 10 N/A N/A processor _rfc1979_deflater _window_bits N/A test_offer_with_out_of_range_max_window_bits N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter permessage-deflate N/A N/A N/A parameter add_parameter server_max_window_bits 0 N/A processor N/A N/A extensions PerMessageDeflateExtensionProcessor parameter N/A N/A N/A self assertIsNone N/A N/A processor get_extension_response N/A test_offer_with_max_window_bits_without_value N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter permessage-deflate N/A N/A N/A parameter add_parameter server_max_window_bits None N/A processor N/A N/A extensions PerMessageDeflateExtensionProcessor parameter N/A N/A N/A self assertIsNone N/A N/A processor get_extension_response N/A test_offer_with_no_context_takeover N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter permessage-deflate N/A N/A N/A parameter add_parameter server_no_context_takeover None N/A processor N/A N/A extensions PerMessageDeflateExtensionProcessor parameter N/A response N/A N/A processor get_extension_response N/A N/A N/A self assertEqual permessage-deflate N/A N/A response name N/A N/A N/A self assertEqual N/A N/A server_no_context_takeover None N/A N/A response get_parameters N/A N/A N/A self assertTrue N/A N/A processor _rfc1979_deflater _no_context_takeover N/A test_offer_with_no_context_takeover_with_value N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter permessage-deflate N/A N/A N/A parameter add_parameter server_no_context_takeover foobar N/A processor N/A N/A extensions PerMessageDeflateExtensionProcessor parameter N/A N/A N/A self assertIsNone N/A N/A processor get_extension_response N/A test_offer_with_unknown_parameter N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter permessage-deflate N/A N/A N/A parameter add_parameter foo bar N/A processor N/A N/A extensions PerMessageDeflateExtensionProcessor parameter N/A N/A N/A self assertIsNone N/A N/A processor get_extension_response N/A N/A PerMessageDeflateExtensionProcessorBuildingTest N/A N/A unittest TestCase N/A N/A A unittest for checking that PerMessageDeflateExtensionProcessor builds
    a response based on specified options correctly.
     test_response_with_max_window_bits N/A N/A self N/A N/A N/A parameter N/A N/A common ExtensionParameter permessage-deflate N/A N/A N/A parameter add_parameter client_max_window_bits None N/A processor N/A N/A extensions PerMessageDeflateExtensionProcessor parameter N/A N/A N/A processor set_client_max_window_bits 10 N/A response N/A N/A processor get_extension_response N/A N/A N/A self assertEqual permessage-deflate N/A N/A response name N/A N/A N/A self assertEqual N/A N/A client_max_window_bits 10 N/A N/A response get_parameters N/A test_response_with_max_window_bits_without_client_permission N/A N/A self N/A N/A N/A processor N/A N/A extensions PerMessageDeflateExtensionProcessor N/A N/A common ExtensionParameter permessage-deflate N/A N/A N/A processor set_client_max_window_bits 10 N/A response N/A N/A processor get_extension_response N/A N/A N/A self assertIsNone response N/A test_response_with_true_for_no_context_takeover N/A N/A self N/A N/A N/A processor N/A N/A extensions PerMessageDeflateExtensionProcessor N/A N/A common ExtensionParameter permessage-deflate N/A N/A N/A processor set_client_no_context_takeover True N/A response N/A N/A processor get_extension_response N/A N/A N/A self assertEqual permessage-deflate N/A N/A response name N/A N/A N/A self assertEqual N/A N/A client_no_context_takeover None N/A N/A response get_parameters N/A test_response_with_false_for_no_context_takeover N/A N/A self N/A N/A N/A processor N/A N/A extensions PerMessageDeflateExtensionProcessor N/A N/A common ExtensionParameter permessage-deflate N/A N/A N/A processor set_client_no_context_takeover False N/A response N/A N/A processor get_extension_response N/A N/A N/A self assertEqual permessage-deflate N/A N/A response name N/A N/A N/A self assertEqual 0 N/A len N/A N/A response get_parameters N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main