Module Import alias ImportFrom alias Import alias Assign NameStore Lambda arguments args NameParam defaults BinOpAdd BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Slice Num Str FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body With Call NameLoad Call NameLoad NameLoad keyword Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Assign NameStore IfExp NameLoad SubscriptLoad NameLoad Index Num NameLoad TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str Str TupleLoad Str Num TupleLoad Str Str TupleLoad Str Str TupleLoad Str NameLoad TupleLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Assign NameStore IfExp NameLoad SubscriptLoad NameLoad Index Num NameLoad TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad TupleLoad Str NameLoad TupleLoad Str TupleLoad Str Dict Str ListLoad Dict Str Str TupleLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad TupleLoad Str NameLoad TupleLoad Str Str TupleLoad Str Num TupleLoad Str NameLoad TupleLoad Str Dict Str Str TupleLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad TupleLoad Str NameLoad TupleLoad Str TupleLoad Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Dict Str Str Str Str NameLoad Num TupleLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad TupleLoad Str NameLoad TupleLoad Str TupleLoad Str Str TupleLoad Str TupleLoad Str Str TupleLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad TupleLoad Str NameLoad TupleLoad Str TupleLoad Str Str TupleLoad Str TupleLoad Str Str TupleLoad Str TupleLoad Str Dict Str Str Str Dict Str Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Num Str Str Str ListLoad Str Str Num ListLoad Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Num Str Str Num Num TupleLoad Str TupleLoad Str NameLoad TupleLoad Str TupleLoad Str Str TupleLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Str Num NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Str Num NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num decorator_list NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword Num
N/A N/A unittest functools wraps N/A jsonstreamer N/A json_file_name N/A N/A N/A test_fn N/A N/A N/A tests/json_files/ N/A N/A test_fn __name__ N/A 5 .json load_test_data N/A N/A func N/A N/A N/A loads some json from a file with the same name as the test wrapper N/A N/A self N/A args kwargs N/A N/A N/A open N/A json_file_name func encoding utf-8 json_file N/A N/A json_input N/A N/A json_file read N/A N/A func self json_input N/A N/A wraps func N/A wrapper N/A JSONStreamerTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _assertions N/A N/A N/A self _streamer N/A N/A jsonstreamer JSONStreamer N/A N/A N/A N/A self _streamer add_catch_all_listener N/A self _catch_all N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self _streamer close N/A N/A N/A self assertEqual N/A len N/A self _assertions 0 N/A _catch_all N/A N/A self event_name N/A args N/A N/A value N/A args N/A args N/A 0 None N/A N/A N/A N/A e v N/A N/A N/A self _assertions pop 0 N/A N/A N/A IndexError N/A N/A N/A AssertionError not enough asserts N/A N/A N/A self assertEqual event_name e N/A N/A N/A self assertEqual value v N/A test_simple_object N/A N/A self json_input N/A N/A N/A N/A self _assertions N/A N/A doc_start None N/A object_start None N/A key apple N/A value 8 N/A key banana N/A value many N/A object_end None N/A doc_end None N/A N/A N/A N/A self _streamer consume json_input N/A load_test_data N/A ObjectStreamerTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _assertions N/A N/A N/A self _streamer N/A N/A jsonstreamer ObjectStreamer N/A N/A N/A N/A self _streamer add_catch_all_listener N/A self _catch_all N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self _streamer close N/A N/A N/A self assertEqual N/A len N/A self _assertions 0 N/A _catch_all N/A N/A self event_name N/A args N/A N/A value N/A args N/A args N/A 0 None N/A N/A N/A N/A expected_event expected_value N/A N/A N/A self _assertions pop 0 N/A N/A N/A IndexError N/A N/A N/A AssertionError not enough asserts N/A N/A N/A self assertEqual event_name expected_event N/A N/A N/A self _assert_value expected_value value N/A _assert_value N/A N/A self expected_value value N/A N/A N/A N/A value N/A isinstance value tuple N/A N/A len value 2 N/A N/A N/A isinstance N/A value N/A 1 dict N/A N/A N/A N/A self assertDictEqual N/A value N/A 1 N/A expected_value N/A 1 N/A N/A N/A self assertEqual N/A expected_value N/A 0 N/A value N/A 0 N/A N/A N/A isinstance N/A value N/A 1 list N/A N/A N/A N/A self assertListEqual N/A value N/A 1 N/A expected_value N/A 1 N/A N/A N/A self assertEqual N/A expected_value N/A 0 N/A value N/A 0 N/A N/A N/A N/A self assertEqual value expected_value N/A N/A N/A N/A self assertEqual value expected_value N/A test_nested_dict N/A N/A self json_input N/A N/A N/A N/A self _assertions N/A N/A object_stream_start None N/A pair N/A params N/A dependencies N/A N/A app Example N/A object_stream_end None N/A N/A N/A N/A self _streamer consume json_input N/A load_test_data test_array N/A N/A self json_input N/A N/A N/A N/A self _assertions N/A N/A array_stream_start None N/A element a N/A element 2 N/A element True N/A element N/A apple fruit N/A array_stream_end None N/A N/A N/A N/A self _streamer consume json_input N/A load_test_data test_spl_chars_in_value N/A N/A self json_input N/A N/A N/A N/A self _assertions N/A N/A object_stream_start None N/A pair N/A employees N/A N/A first Name lastName Jo:hn Doe,Foe N/A firstName lastName An\na Smith Jack N/A firstName lastName Peter Jones True 745 N/A object_stream_end None N/A N/A N/A N/A self _streamer consume json_input N/A load_test_data test_space_preservation N/A N/A self json_input N/A N/A N/A N/A self _assertions N/A N/A object_stream_start None N/A pair N/A between space  before space N/A pair N/A after space     all spaces  N/A object_stream_end None N/A N/A N/A N/A self _streamer consume json_input N/A load_test_data test_arbit_1 N/A N/A self json_input N/A N/A N/A N/A self _assertions N/A N/A object_stream_start None N/A pair N/A to 8743d93a N/A pair N/A type response N/A pair N/A payload N/A request_id result 0f2d9b9c N/A type manufacturer name brand image_urls price attributes sku_id units_in_pack allopathy N/A url id name johnsons.com 5 johnsons crocin 200 mg crocin N/A http//1example.com/3 http//1example.com/2 200.0 N/A N/A value key display_name strip pack_form pack form N/A value key display_name tablet drug_form drug form N/A value key display_name 200 mg strength strength N/A value key display_name paracetamol name name N/A value key display_name 30 units_in_pack units in pack 91 30 N/A pair N/A entity None N/A pair N/A pid 43abc6be N/A object_stream_end None N/A N/A N/A N/A self _streamer consume json_input N/A load_test_data N/A ObjectStreamerListenerTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _streamer N/A N/A jsonstreamer ObjectStreamer N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self _streamer close N/A N/A N/A self assertEqual N/A len N/A self _assertions 0 N/A test_on_element N/A N/A self json_input N/A N/A N/A N/A self _assertions N/A a 2 True N/A apple fruit _on_element N/A N/A value N/A N/A N/A N/A N/A expected_value N/A N/A N/A self _assertions pop 0 N/A N/A N/A IndexError N/A N/A N/A AssertionError not enough asserts N/A N/A N/A self assertEqual expected_value value N/A N/A N/A N/A N/A self _streamer add_listener element _on_element N/A N/A N/A N/A self _streamer consume json_input N/A load_test_data test_on_element_multiple_parses N/A N/A self json_input N/A N/A N/A N/A self _assertions N/A a 2 True N/A apple fruit _on_element N/A N/A value N/A N/A N/A N/A N/A expected_value N/A N/A N/A self _assertions pop 0 N/A N/A N/A IndexError N/A N/A N/A AssertionError not enough asserts N/A N/A N/A self assertEqual expected_value value N/A N/A N/A N/A N/A self _streamer add_listener element _on_element N/A N/A N/A N/A self _streamer consume N/A json_input N/A 0 8 N/A N/A N/A N/A self _streamer consume N/A json_input N/A 8 N/A load_test_data N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main verbosity 2