Module Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr CompareGtE NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num BinOpSub NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareGtE Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list decorator_list
N/A N/A unittest modules.bag Bag modules.item Item InventoryBagTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self bag N/A Bag N/A tearDown N/A N/A self N/A N/A N/A N/A self bag None N/A test_can_use_bag_to_hold_items_that_are_found N/A N/A self N/A N/A N/A N/A N/A self assertIsNotNone N/A self bag N/A N/A N/A self assertTrue N/A N/A N/A self bag is_empty N/A N/A N/A self assertEqual N/A N/A N/A self bag item_count 0 N/A rock N/A Item rock N/A N/A N/A N/A self bag add rock N/A N/A N/A self assertFalse N/A N/A N/A self bag is_empty N/A N/A N/A self assertEqual N/A N/A N/A self bag item_count 1 N/A seen N/A N/A N/A self bag look N/A N/A N/A self assertIn 1 rock seen N/A N/A N/A N/A self bag add rock N/A another_rock N/A Item rock N/A N/A N/A N/A self bag add another_rock N/A N/A N/A self assertEqual N/A N/A N/A self bag item_count 3 N/A seen N/A N/A N/A self bag look N/A N/A N/A self assertIn 3 rock seen N/A dagger N/A Item dagger N/A N/A N/A N/A self bag add dagger N/A seen N/A N/A N/A self bag look N/A N/A N/A self assertIn 1 dagger seen N/A test_items_are_removed_from_bag N/A N/A self N/A N/A N/A N/A N/A N/A self bag add N/A Item hatrack N/A N/A N/A N/A self bag add N/A Item carpet N/A N/A N/A N/A self bag add N/A Item Thing 1 N/A N/A N/A N/A self bag add N/A Item Thing 2 N/A N/A N/A N/A self bag add N/A Item Cat N/A N/A N/A N/A self bag add N/A Item Hat N/A N/A N/A N/A self bag add N/A Item lollipop N/A N/A N/A N/A self bag add N/A Item lollipop N/A N/A N/A N/A self bag add N/A Item lollipop N/A N/A N/A N/A self bag add_many N/A Item lollipop 5 N/A N/A N/A N/A self bag add N/A Item medicine N/A N/A N/A N/A self bag add N/A Item teaspoon N/A N/A N/A N/A self bag add_many N/A Item spoonful of sugar 3 N/A total_items N/A N/A N/A self bag item_count N/A N/A N/A self assertTrue N/A total_items 14 N/A hatrack_count N/A N/A N/A self bag how_many hatrack N/A N/A N/A N/A self bag remove hatrack N/A N/A N/A self assertEqual N/A hatrack_count 1 N/A N/A N/A self bag how_many hatrack N/A N/A N/A N/A self bag add N/A Item hatrack N/A N/A N/A self assertEqual hatrack_count N/A N/A N/A self bag how_many hatrack N/A N/A med_count medicine N/A N/A N/A self bag remove medicine N/A N/A N/A self assertEqual med_count 1 N/A N/A N/A self assertIsInstance medicine Item N/A N/A N/A self assertEqual N/A medicine name medicine N/A N/A teaspoon_count teaspoon N/A N/A N/A self bag remove_many teaspoon 2 N/A N/A N/A self assertEqual teaspoon_count 1 N/A N/A N/A self assertEqual N/A N/A N/A self bag how_many teaspoon 0 N/A N/A N/A self assertEqual N/A teaspoon name teaspoon N/A N/A sugar_count sugar N/A N/A N/A self bag remove spoonful of sugar N/A N/A N/A self assertEqual 1 sugar_count N/A N/A sugar_count sugar N/A N/A N/A self bag remove spoonful of sugar N/A N/A N/A self assertEqual 1 sugar_count N/A N/A sugar_count sugar N/A N/A N/A self bag remove spoonful of sugar N/A N/A N/A self assertEqual 1 sugar_count N/A new_total_items N/A N/A N/A self bag item_count N/A N/A N/A self assertEqual 5 N/A total_items new_total_items N/A N/A N/A N/A self bag add teaspoon N/A N/A N/A N/A self bag add medicine N/A N/A N/A self assertTrue N/A N/A N/A N/A self bag item_count 12 N/A test_items_are_dumped_into_a_pile N/A N/A self N/A N/A N/A rock N/A Item rock N/A N/A N/A N/A self bag add rock N/A pile N/A N/A N/A self bag dump N/A item_list N/A N/A pile keys N/A N/A N/A self assertEqual N/A len item_list 1 N/A N/A N/A self assertIn rock item_list N/A item N/A pile N/A rock N/A N/A N/A self assertEqual N/A item N/A name rock N/A N/A N/A self assertEqual N/A item N/A count 1 N/A N/A