Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import 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 NameLoad attr Dict Str Str Assign TupleStore NameStore NameStore NameStore TupleLoad Str Str Call NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Dict Str Str Assign TupleStore NameStore NameStore NameStore TupleLoad Str Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Dict Str Str Assign TupleStore NameStore NameStore NameStore TupleLoad Str Str Call NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Dict Str Str Assign TupleStore NameStore NameStore NameStore TupleLoad Str Str Call NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num 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 CompareEq NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Dict NameLoad Str NameLoad Dict NameLoad ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Dict NameLoad Str NameLoad Dict NameLoad ListLoad NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Dict NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad Str attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad body Expr Str Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Lambda arguments args defaults CompareIn Str NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Lambda arguments args NameParam NameParam defaults CompareIn Str NameLoad Assign AttributeStore NameLoad attr CompareIsNot NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Dict AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Dict AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Dict AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Dict AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list decorator_list
N/A N/A  Unit tests for the simple endpoints  types MethodType mock MagicMock patch N/A MockServerTest make_package pypicloud.auth _request_login pypicloud.views.simple upload simple package_versions get_fallback_packages N/A N/A N/A unittest2 unittest N/A N/A N/A ImportError N/A N/A unittest TestSimple N/A MockServerTest N/A N/A  Unit tests for the /simple endpoints  setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestSimple self setUp N/A N/A N/A self request access N/A MagicMock N/A test_upload N/A N/A self N/A N/A N/A  Upload endpoint returns the result of api call  N/A N/A self params N/A :action file_upload N/A N/A name version content N/A foo bar N/A MagicMock N/A N/A content filename foo-1.2.tar.gz N/A pkg N/A upload N/A self request content name version N/A N/A N/A self assertEquals pkg N/A N/A N/A N/A self request db packages N/A N/A content filename N/A test_upload_bad_action N/A N/A self N/A N/A N/A  Upload endpoint only respects 'file_upload' action  N/A N/A self params N/A :action blah N/A N/A name version content N/A foo bar baz N/A response N/A upload N/A self request content name version N/A N/A N/A self assertEqual N/A response status_code 400 N/A test_upload_no_write_permission N/A N/A self N/A N/A N/A  Upload without write permission returns 403  N/A N/A self params N/A :action file_upload N/A N/A name version content N/A foo bar N/A MagicMock N/A N/A content filename foo-1.2.tar.gz N/A N/A N/A N/A N/A self request access has_permission return_value False N/A response N/A upload N/A self request content name version N/A N/A N/A self assertEqual response N/A N/A N/A self request forbid N/A test_upload_duplicate N/A N/A self N/A N/A N/A  Uploading a duplicate package returns 400  N/A N/A self params N/A :action file_upload N/A N/A name version content N/A foo 1.2 N/A MagicMock N/A N/A content filename foo-1.2.tar.gz N/A N/A N/A N/A self db upload N/A content filename content name N/A response N/A upload N/A self request content name version N/A N/A N/A self assertEqual N/A response status_code 400 N/A test_list N/A N/A self N/A N/A N/A  Simple list should return api call  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 x b N/A result N/A simple N/A self request N/A N/A N/A self assertEqual result N/A pkgs N/A b N/A test_fallback_packages N/A N/A self N/A N/A N/A  Fetch fallback packages  N/A N/A N/A self request locator N/A MagicMock N/A version 1.1 N/A name foo N/A filename N/A %s-%s.tar.gz N/A name version N/A url N/A http://pypi.python.org/pypi/%s/%s N/A name filename N/A wheelname N/A %s-%s.whl N/A name version N/A wheel_url N/A http://pypi.python.org/pypi/%s/%s N/A name wheelname N/A dist N/A MagicMock N/A N/A dist name name N/A N/A N/A N/A N/A self request locator get_project return_value N/A version urls dist N/A version N/A url wheel_url N/A N/A N/A self request app_url N/A MagicMock N/A pkgs N/A get_fallback_packages N/A self request foo False N/A N/A N/A N/A N/A self request app_url assert_any_call api package name filename N/A N/A N/A N/A N/A self request app_url assert_any_call api package name wheelname N/A N/A N/A self assertEqual pkgs N/A filename wheelname N/A N/A N/A self request app_url N/A N/A N/A self request app_url N/A test_fallback_packages_redirect N/A N/A self N/A N/A N/A  Fetch fallback packages with redirect URLs  N/A N/A N/A self request locator N/A MagicMock N/A version 1.1 N/A name foo N/A filename N/A %s-%s.tar.gz N/A name version N/A url N/A http://pypi.python.org/pypi/%s/%s N/A name filename N/A wheelname N/A %s-%s.whl N/A name version N/A wheel_url N/A http://pypi.python.org/pypi/%s/%s N/A name wheelname N/A dist N/A MagicMock N/A N/A dist name name N/A N/A N/A N/A N/A self request locator get_project return_value N/A version urls dist N/A version N/A url wheel_url N/A pkgs N/A get_fallback_packages N/A self request foo N/A N/A N/A self assertEqual pkgs N/A filename wheelname url wheel_url N/A N/A PackageReadTestBase N/A N/A unittest TestCase N/A N/A  Base class test for reading packages  N/A fallback None N/A always_show_upstream None N/A fallback_url http://pypi.python.org/pypi/ setUpClass N/A N/A cls N/A N/A N/A N/A cls package N/A make_package N/A N/A cls package2 N/A make_package version 2.1 N/A classmethod setUp N/A N/A self N/A N/A N/A get N/A N/A N/A patch pypicloud.views.simple.get_fallback_packages start N/A p2 N/A self package2 N/A N/A self fallback_packages N/A get return_value N/A N/A p2 filename N/A N/A self fallback_url N/A p2 filename N/A tearDown N/A N/A self N/A N/A N/A N/A N/A patch stopall N/A get_request N/A N/A self package perms user N/A None None N/A N/A  Construct a fake request  N/A request N/A MagicMock N/A N/A N/A request registry fallback N/A self fallback N/A N/A N/A request registry always_show_upstream N/A self always_show_upstream N/A N/A N/A request registry fallback_url N/A self fallback_url N/A N/A request userid user N/A N/A N/A request access can_update_cache N/A N/A N/A N/A N/A c perms N/A N/A N/A N/A request access has_permission side_effect N/A N/A N/A n p N/A N/A r perms N/A N/A request is_logged_in N/A user None N/A N/A request request_login N/A MethodType _request_login request N/A request __class__ N/A pkgs N/A N/A N/A package None N/A N/A N/A N/A pkgs append package N/A N/A N/A N/A request db all return_value pkgs N/A request N/A should_ask_auth N/A N/A self request N/A N/A N/A  When requested, the endpoint should return a 401  N/A ret N/A package_versions N/A self package request N/A N/A N/A self assertEqual N/A ret status_code 401 N/A should_404 N/A N/A self request N/A N/A N/A  When requested, the endpoint should return a 404  N/A ret N/A package_versions N/A self package request N/A N/A N/A self assertEqual N/A ret status_code 404 N/A should_403 N/A N/A self request N/A N/A N/A  When requested, the endpoint should return a 403  N/A ret N/A package_versions N/A self package request N/A N/A N/A self assertEqual N/A ret status_code 403 N/A should_redirect N/A N/A self request N/A N/A N/A  When requested, the endpoint should redirect to the fallback  N/A ret N/A package_versions N/A self package request N/A N/A N/A self assertEqual N/A ret status_code 302 N/A N/A N/A self assertEqual N/A ret location N/A N/A N/A self fallback_url N/A N/A self package name / N/A should_serve N/A N/A self request N/A N/A N/A  When requested, the endpoint should serve the packages  N/A ret N/A package_versions N/A self package request N/A N/A N/A self assertEqual ret N/A pkgs N/A N/A N/A self package filename N/A N/A N/A self package get_url request N/A should_cache N/A N/A self request N/A N/A N/A  When requested, the endpoint should serve the fallback packages  N/A ret N/A package_versions N/A self package request N/A N/A N/A self assertEqual ret N/A pkgs N/A self fallback_packages N/A should_serve_and_redirect N/A N/A self request N/A N/A N/A  Should serve mixture of package urls and redirect urls  N/A ret N/A package_versions N/A self package request N/A f2name N/A N/A self package2 filename N/A N/A N/A self assertEqual ret N/A pkgs N/A N/A N/A self package filename f2name N/A N/A N/A self package get_url request N/A N/A self fallback_packages N/A f2name N/A N/A TestRedirect N/A PackageReadTestBase N/A N/A  Test reading packages with fallback=redirect and always_show_upstream=false  N/A fallback redirect N/A always_show_upstream False test_no_package_no_read_no_user N/A N/A self N/A N/A N/A  No package, no read perms, no user  N/A N/A N/A self should_redirect N/A N/A self get_request N/A test_no_package_no_read_user N/A N/A self N/A N/A N/A  No package, no read perms, user  N/A N/A N/A self should_redirect N/A N/A self get_request user foo N/A test_no_package_read_no_user N/A N/A self N/A N/A N/A  No package, read perms, no user  N/A N/A N/A self should_redirect N/A N/A self get_request perms r N/A test_no_package_read_user N/A N/A self N/A N/A N/A  No package, read perms, user  N/A N/A N/A self should_redirect N/A N/A self get_request perms r user foo N/A test_no_package_write_no_user N/A N/A self N/A N/A N/A  No package, write perms, no user  N/A N/A N/A self should_redirect N/A N/A self get_request perms rc N/A test_no_package_write_user N/A N/A self N/A N/A N/A  No package, write perms, user  N/A N/A N/A self should_redirect N/A N/A self get_request perms rc user foo N/A test_package_no_read_no_user N/A N/A self N/A N/A N/A  Package, no read perms, no user.  N/A N/A N/A self should_ask_auth N/A N/A self get_request N/A self package N/A test_package_no_read_user N/A N/A self N/A N/A N/A  Package, no read perms, user.  N/A N/A N/A self should_redirect N/A N/A self get_request N/A self package foo N/A test_package_read_no_user N/A N/A self N/A N/A N/A  Package, read perms, no user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package r N/A test_package_read_user N/A N/A self N/A N/A N/A  Package, read perms, user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package r foo N/A test_package_write_no_user N/A N/A self N/A N/A N/A  Package, write perms, no user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package rc N/A test_package_write_user N/A N/A self N/A N/A N/A  Package, write perms, user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package rc foo N/A N/A TestRedirectAlwaysShow N/A PackageReadTestBase N/A N/A  Test reading packages with fallback=redirect and always_show_upstream=truue  N/A fallback redirect N/A always_show_upstream True test_no_package_no_read_no_user N/A N/A self N/A N/A N/A  No package, no read perms, no user  N/A N/A N/A self should_redirect N/A N/A self get_request N/A test_no_package_no_read_user N/A N/A self N/A N/A N/A  No package, no read perms, user  N/A N/A N/A self should_redirect N/A N/A self get_request user foo N/A test_no_package_read_no_user N/A N/A self N/A N/A N/A  No package, read perms, no user  N/A N/A N/A self should_redirect N/A N/A self get_request perms r N/A test_no_package_read_user N/A N/A self N/A N/A N/A  No package, read perms, user  N/A N/A N/A self should_redirect N/A N/A self get_request perms r user foo N/A test_no_package_write_no_user N/A N/A self N/A N/A N/A  No package, write perms, no user  N/A N/A N/A self should_redirect N/A N/A self get_request perms rc N/A test_no_package_write_user N/A N/A self N/A N/A N/A  No package, write perms, user  N/A N/A N/A self should_redirect N/A N/A self get_request perms rc user foo N/A test_package_no_read_no_user N/A N/A self N/A N/A N/A  Package, no read perms, no user.  N/A N/A N/A self should_ask_auth N/A N/A self get_request N/A self package N/A test_package_no_read_user N/A N/A self N/A N/A N/A  Package, no read perms, user.  N/A N/A N/A self should_redirect N/A N/A self get_request N/A self package foo N/A test_package_read_no_user N/A N/A self N/A N/A N/A  Package, read perms, no user.  N/A req N/A N/A self get_request N/A self package r foo N/A N/A N/A self should_serve_and_redirect req N/A test_package_read_user N/A N/A self N/A N/A N/A  Package, read perms, user.  N/A req N/A N/A self get_request N/A self package r foo N/A N/A N/A self should_serve_and_redirect req N/A test_package_write_no_user N/A N/A self N/A N/A N/A  Package, write perms, no user.  N/A req N/A N/A self get_request N/A self package r foo N/A N/A N/A self should_serve_and_redirect req N/A test_package_write_user N/A N/A self N/A N/A N/A  Package, write perms, user.  N/A req N/A N/A self get_request N/A self package r foo N/A N/A N/A self should_serve_and_redirect req N/A N/A TestCache N/A PackageReadTestBase N/A N/A  Test reading packages with fallback=cache and always_show_upstream=false  N/A fallback cache N/A always_show_upstream False test_no_package_no_read_no_user N/A N/A self N/A N/A N/A  No package, no read perms, no user  N/A N/A N/A self should_ask_auth N/A N/A self get_request N/A test_no_package_no_read_user N/A N/A self N/A N/A N/A  No package, no read perms, user  N/A N/A N/A self should_404 N/A N/A self get_request user foo N/A test_no_package_read_no_user N/A N/A self N/A N/A N/A  No package, read perms, no user  N/A N/A N/A self should_ask_auth N/A N/A self get_request perms r N/A test_no_package_read_user N/A N/A self N/A N/A N/A  No package, read perms, user  N/A N/A N/A self should_404 N/A N/A self get_request perms r user foo N/A test_no_package_write_no_user N/A N/A self N/A N/A N/A  No package, write perms, no user  N/A N/A N/A self should_cache N/A N/A self get_request perms rc N/A test_no_package_write_user N/A N/A self N/A N/A N/A  No package, write perms, user  N/A N/A N/A self should_cache N/A N/A self get_request perms rc user foo N/A test_package_no_read_no_user N/A N/A self N/A N/A N/A  Package, no read perms, no user.  N/A N/A N/A self should_ask_auth N/A N/A self get_request N/A self package N/A test_package_no_read_user N/A N/A self N/A N/A N/A  Package, no read perms, user.  N/A N/A N/A self should_404 N/A N/A self get_request N/A self package foo N/A test_package_read_no_user N/A N/A self N/A N/A N/A  Package, read perms, no user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package r N/A test_package_read_user N/A N/A self N/A N/A N/A  Package, read perms, user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package r foo N/A test_package_write_no_user N/A N/A self N/A N/A N/A  Package, write perms, no user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package rc N/A test_package_write_user N/A N/A self N/A N/A N/A  Package, write perms, user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package rc foo N/A N/A TestCacheAlwaysShow N/A PackageReadTestBase N/A N/A  Test reading packages with fallback=cache and always_show_upstream=true  N/A fallback cache N/A always_show_upstream True test_no_package_no_read_no_user N/A N/A self N/A N/A N/A  No package, no read perms, no user  N/A N/A N/A self should_ask_auth N/A N/A self get_request N/A test_no_package_no_read_user N/A N/A self N/A N/A N/A  No package, no read perms, user  N/A N/A N/A self should_redirect N/A N/A self get_request user foo N/A test_no_package_read_no_user N/A N/A self N/A N/A N/A  No package, read perms, no user  N/A N/A N/A self should_ask_auth N/A N/A self get_request perms r N/A test_no_package_read_user N/A N/A self N/A N/A N/A  No package, read perms, user  N/A N/A N/A self should_redirect N/A N/A self get_request perms r user foo N/A test_no_package_write_no_user N/A N/A self N/A N/A N/A  No package, write perms, no user  N/A N/A N/A self should_cache N/A N/A self get_request perms rc N/A test_no_package_write_user N/A N/A self N/A N/A N/A  No package, write perms, user  N/A N/A N/A self should_cache N/A N/A self get_request perms rc user foo N/A test_package_no_read_no_user N/A N/A self N/A N/A N/A  Package, no read perms, no user.  N/A N/A N/A self should_ask_auth N/A N/A self get_request N/A self package N/A test_package_no_read_user N/A N/A self N/A N/A N/A  Package, no read perms, user.  N/A N/A N/A self should_redirect N/A N/A self get_request N/A self package foo N/A test_package_read_no_user N/A N/A self N/A N/A N/A  Package, read perms, no user.  N/A N/A N/A self should_ask_auth N/A N/A self get_request N/A self package r N/A test_package_read_user N/A N/A self N/A N/A N/A  Package, read perms, user.  N/A req N/A N/A self get_request N/A self package r foo N/A N/A N/A self should_serve_and_redirect req N/A test_package_write_no_user N/A N/A self N/A N/A N/A  Package, write perms, no user.  N/A req N/A N/A self get_request N/A self package rc N/A ret N/A package_versions N/A self package req N/A p2 N/A self package2 N/A N/A N/A self assertEqual ret N/A pkgs N/A N/A N/A self package filename N/A N/A self package2 filename N/A N/A N/A self package get_url req N/A N/A self fallback_packages N/A N/A p2 filename N/A test_package_write_user N/A N/A self N/A N/A N/A  Package, write perms, user.  N/A req N/A N/A self get_request N/A self package rc foo N/A ret N/A package_versions N/A self package req N/A p2 N/A self package2 N/A N/A N/A self assertEqual ret N/A pkgs N/A N/A N/A self package filename N/A N/A self package2 filename N/A N/A N/A self package get_url req N/A N/A self fallback_packages N/A N/A p2 filename N/A N/A TestNoFallback N/A PackageReadTestBase N/A N/A  Tests for reading packages with fallback=none  N/A fallback none test_no_package_no_read_no_user N/A N/A self N/A N/A N/A  No package, no read perms, no user  N/A N/A N/A self should_ask_auth N/A N/A self get_request N/A test_no_package_no_read_user N/A N/A self N/A N/A N/A  No package, no read perms, user  N/A N/A N/A self should_404 N/A N/A self get_request user foo N/A test_no_package_read_no_user N/A N/A self N/A N/A N/A  No package, read perms, no user  N/A N/A N/A self should_404 N/A N/A self get_request perms r N/A test_no_package_read_user N/A N/A self N/A N/A N/A  No package, read perms, user  N/A N/A N/A self should_404 N/A N/A self get_request perms r user foo N/A test_no_package_write_no_user N/A N/A self N/A N/A N/A  No package, write perms, no user  N/A N/A N/A self should_404 N/A N/A self get_request perms rc N/A test_no_package_write_user N/A N/A self N/A N/A N/A  No package, write perms, user  N/A N/A N/A self should_404 N/A N/A self get_request perms rc user foo N/A test_package_no_read_no_user N/A N/A self N/A N/A N/A  Package, no read perms, no user.  N/A N/A N/A self should_ask_auth N/A N/A self get_request N/A self package N/A test_package_no_read_user N/A N/A self N/A N/A N/A  Package, no read perms, user.  N/A N/A N/A self should_404 N/A N/A self get_request N/A self package foo N/A test_package_read_no_user N/A N/A self N/A N/A N/A  Package, read perms, no user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package r N/A test_package_read_user N/A N/A self N/A N/A N/A  Package, read perms, user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package r foo N/A test_package_write_no_user N/A N/A self N/A N/A N/A  Package, write perms, no user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package rc N/A test_package_write_user N/A N/A self N/A N/A N/A  Package, write perms, user.  N/A N/A N/A self should_serve N/A N/A self get_request N/A self package rc foo N/A N/A