Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr ListLoad Str Str Str Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Lambda arguments args NameParam NameParam defaults BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Return NameLoad decorator_list Assign NameStore Dict Str Str Str ListLoad Call NameLoad Str Call NameLoad Str ListLoad Call NameLoad Str ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str NameLoad decorator_list decorator_list
N/A N/A  Unit tests for the packages endpoints  mock MagicMock N/A MockServerTest pypicloud.views.packages list_packages TestPackages N/A MockServerTest N/A N/A  Unit tests for the /packages endpoints  setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestPackages self setUp N/A N/A N/A self request access N/A MagicMock N/A test_list_packages N/A N/A self N/A N/A N/A  Should return packages with their names and urls  N/A N/A N/A self request db N/A MagicMock N/A N/A N/A N/A N/A self request db distinct return_value N/A a b c N/A N/A N/A N/A N/A self request access has_permission side_effect N/A N/A N/A x _ N/A N/A N/A x b N/A x c get_packages N/A N/A x N/A N/A N/A  Returns a list of mocked package objects for this package  mm N/A N/A package_name N/A N/A N/A  Mock packages for packages_to_dict  N/A p N/A MagicMock N/A N/A p filename package_name N/A N/A N/A p get_url return_value N/A package_name .ext N/A p N/A N/A d N/A a b c N/A N/A mm a0 N/A mm a1 N/A N/A mm b0 N/A N/A mm c0 N/A mm c1 N/A mm c2 N/A N/A N/A d get x N/A N/A N/A N/A N/A N/A N/A self request db all side_effect get_packages N/A result N/A list_packages N/A self request N/A expected N/A b0 c0 c1 c2 b0.ext c0.ext c1.ext c2.ext N/A N/A N/A self assertEqual result N/A pkgs expected N/A N/A