Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assign NameStore Call AttributeLoad Str attr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr Str Dict Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Dict Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad Str attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Assign NameStore Str Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad Str attr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num For NameStore TupleLoad Str Str Str Str body Assign NameStore Call AttributeLoad Str attr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str With Call AttributeLoad NameLoad attr keyword NameLoad body For NameStore NameLoad body Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr Dict Str Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Dict Str Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign NameStore Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad Str attr Call NameLoad Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr Assign NameStore Dict Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign NameStore Dict Str AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Dict Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Dict Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Assign NameStore Str
N/A N/A 
Unit tests for the Deis api app.

Run the tests with "./manage.py test api"
 __future__ unicode_literals N/A json N/A logging N/A mock N/A requests django.conf settings django.contrib.auth.models User django.test TestCase rest_framework.authtoken.models Token api.models App N/A mock_status_ok AppTest N/A TestCase N/A N/A Tests creation of applications N/A fixtures N/A tests.json setUp N/A N/A self N/A N/A N/A N/A self user N/A N/A N/A User objects get username autotest N/A N/A self token N/A N/A N/A N/A Token objects get user N/A self user key N/A N/A settings SSH_PRIVATE_KEY <some-ssh-private-key> N/A tearDown N/A N/A self N/A N/A N/A N/A settings SSH_PRIVATE_KEY N/A test_app N/A N/A self N/A N/A N/A 
        Test that a user can create, read, update and delete an application
         N/A url /v1/apps N/A response N/A N/A N/A self client post url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 201 N/A app_id N/A N/A response data N/A id N/A N/A N/A self assertIn id N/A response data N/A response N/A N/A N/A self client get /v1/apps HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A len N/A N/A response data N/A results 1 N/A url N/A N/A /v1/apps/{app_id} format N/A locals N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 200 N/A body N/A id new N/A response N/A N/A N/A self client patch url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 405 N/A response N/A N/A N/A self client delete url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 204 N/A test_response_data N/A N/A self N/A N/A N/A Test that the serialized response contains only relevant data. N/A body N/A id test N/A response N/A N/A N/A self client post /v1/apps N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A key N/A response data N/A N/A N/A N/A self assertIn key N/A uuid created updated id owner url structure N/A expected N/A id owner url structure test N/A N/A self user username test.deisapp.local N/A N/A N/A N/A self assertDictContainsSubset expected N/A response data N/A test_app_override_id N/A N/A self N/A N/A N/A body N/A id myid N/A response N/A N/A N/A self client post /v1/apps N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 201 N/A body N/A id N/A N/A response data N/A id N/A response N/A N/A N/A self client post /v1/apps N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertContains response This field must be unique. status_code 400 N/A response N/A test_app_actions N/A N/A self mock_get N/A N/A N/A url /v1/apps N/A body N/A id autotest N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 201 N/A app_id N/A N/A response data N/A id N/A mock_response N/A N/A mock Mock N/A N/A mock_response status_code 204 N/A N/A mock_get return_value mock_response N/A url N/A N/A /v1/apps/{app_id}/logs format N/A locals N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 204 N/A N/A mock_response status_code 404 N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 204 N/A N/A mock_response status_code 400 N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 500 N/A N/A N/A self assertEqual N/A response content N/A N/A Error accessing logs for {} format app_id N/A N/A mock_response status_code 200 N/A N/A mock_response content FAKE_LOG_DATA N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A response content FAKE_LOG_DATA N/A N/A mock_get side_effect N/A N/A N/A requests exceptions RequestException Boom! N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 500 N/A N/A N/A self assertEqual N/A response content N/A N/A Error accessing logs for {} format app_id N/A N/A N/A mock patch requests.get test_app_release_notes_in_logs N/A N/A self mock_logger N/A N/A N/A Verifies that an app's release summary is dumped into the logs. N/A url /v1/apps N/A app_name autotest N/A body N/A id app_name N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 201 N/A app N/A N/A N/A App objects get id app_name N/A exp_msg N/A N/A [{app_name}]: {self.user.username} created initial release format N/A locals N/A N/A N/A N/A mock_logger log assert_called_with N/A logging INFO exp_msg N/A N/A N/A app log hello world N/A exp_msg N/A N/A [{app_name}]: hello world format N/A locals N/A N/A N/A N/A mock_logger log assert_called_with N/A logging INFO exp_msg N/A N/A N/A app log goodbye world N/A logging WARNING N/A exp_msg N/A N/A [{app_name}]: goodbye world format N/A locals N/A N/A N/A N/A mock_logger log assert_called_with N/A logging WARNING exp_msg N/A N/A N/A mock patch api.models.logger test_app_errors N/A N/A self N/A N/A N/A app_id autotest-errors N/A url /v1/apps N/A body N/A id camelCase N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertContains response App IDs can only contain [a-z0-9-] status_code 400 N/A url /v1/apps N/A body N/A id app_id N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 201 N/A app_id N/A N/A response data N/A id N/A url N/A N/A /v1/apps/{app_id} format N/A locals N/A response N/A N/A N/A self client delete url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEquals N/A response status_code 204 N/A endpoint N/A containers config releases builds N/A N/A url N/A N/A /v1/apps/{app_id}/{endpoint} format N/A locals N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEquals N/A response status_code 404 N/A test_app_reserved_names N/A N/A self N/A N/A N/A Nobody should be able to create applications with names which are reserved. N/A url /v1/apps N/A reserved_names N/A foo bar N/A N/A N/A self settings DEIS_RESERVED_NAMES reserved_names N/A N/A name reserved_names N/A N/A body N/A id name N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertContains response N/A N/A {} is a reserved name. format name status_code 400 N/A test_app_structure_is_valid_json N/A N/A self N/A N/A N/A Application structures should be valid JSON objects. N/A url /v1/apps N/A response N/A N/A N/A self client post url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 201 N/A app_id N/A N/A response data N/A id N/A N/A N/A self assertIn structure N/A response data N/A N/A N/A self assertEqual N/A N/A response data N/A structure N/A N/A app N/A N/A N/A App objects get id app_id N/A N/A app structure N/A web 1 N/A N/A N/A app save N/A url N/A N/A /v1/apps/{} format app_id N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertIn structure N/A response data N/A N/A N/A self assertEqual N/A N/A response data N/A structure N/A web 1 N/A test_admin_can_manage_other_apps N/A N/A self mock_logger N/A N/A N/A Administrators of Deis should be able to manage all applications.
         N/A user N/A N/A N/A User objects get username autotest2 N/A token N/A N/A N/A Token objects get user user N/A app_id autotest N/A url /v1/apps N/A body N/A id app_id N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format token N/A url N/A N/A /v1/apps/{} format app_id N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 200 N/A exp_msg autotest2 created initial release N/A exp_log_call N/A N/A mock call N/A logging INFO exp_msg N/A N/A N/A N/A mock_logger log has_calls exp_log_call N/A url N/A N/A /v1/apps/{} format app_id N/A response N/A N/A N/A self client delete url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 204 N/A N/A N/A mock patch requests.post mock_status_ok N/A N/A mock patch api.models.logger test_admin_can_see_other_apps N/A N/A self N/A N/A N/A If a user creates an application, the administrator should be able
        to see it.
         N/A user N/A N/A N/A User objects get username autotest2 N/A token N/A N/A N/A Token objects get user user N/A app_id autotest N/A url /v1/apps N/A body N/A id app_id N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format token N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A N/A response data N/A count 1 N/A test_run_without_auth N/A N/A self N/A N/A N/A If the administrator has not provided SSH private key for run commands,
        make sure a friendly error message is provided on run N/A N/A settings SSH_PRIVATE_KEY N/A url /v1/apps N/A body N/A id autotest N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 201 N/A app_id N/A N/A response data N/A id N/A url N/A N/A /v1/apps/{app_id}/run format N/A locals N/A body N/A command ls -al N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEquals N/A response status_code 400 N/A N/A N/A self assertEquals N/A response data N/A detail Support for admin commands is not configured N/A test_run_without_release_should_error N/A N/A self N/A N/A N/A 
        A user should not be able to run a one-off command unless a release
        is present.
         N/A app_id autotest N/A url /v1/apps N/A body N/A id app_id N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A url N/A N/A /v1/apps/{}/run format app_id N/A body N/A command ls -al N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 400 N/A N/A N/A self assertEqual N/A response data N/A detail No build associated with this release to run this command N/A test_unauthorized_user_cannot_see_app N/A N/A self N/A N/A N/A 
        An unauthorized user should not be able to access an app's resources.

        Since an unauthorized user can't access the application, these
        tests should return a 403, but currently return a 404. FIXME!
         N/A app_id autotest N/A base_url /v1/apps N/A body N/A id app_id N/A response N/A N/A N/A self client post base_url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A unauthorized_user N/A N/A N/A User objects get username autotest2 N/A unauthorized_token N/A N/A N/A N/A Token objects get user unauthorized_user key N/A url N/A N/A {}/{}/run format base_url app_id N/A body N/A command foo N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format unauthorized_token N/A N/A N/A self assertEqual N/A response status_code 403 N/A url N/A N/A {}/{}/logs format base_url app_id N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format unauthorized_token N/A N/A N/A self assertEqual N/A response status_code 403 N/A url N/A N/A {}/{} format base_url app_id N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format unauthorized_token N/A N/A N/A self assertEqual N/A response status_code 403 N/A response N/A N/A N/A self client delete url HTTP_AUTHORIZATION N/A N/A token {} format unauthorized_token N/A N/A N/A self assertEqual N/A response status_code 403 N/A test_app_info_not_showing_wrong_app N/A N/A self N/A N/A N/A app_id autotest N/A base_url /v1/apps N/A body N/A id app_id N/A response N/A N/A N/A self client post base_url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A url N/A N/A {}/foo format base_url N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 404 N/A test_app_transfer N/A N/A self N/A N/A N/A owner N/A N/A N/A User objects get username autotest2 N/A owner_token N/A N/A N/A N/A Token objects get user owner key N/A app_id autotest N/A base_url /v1/apps N/A body N/A id app_id N/A response N/A N/A N/A self client post base_url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format owner_token N/A url N/A N/A {}/{} format base_url app_id N/A new_owner N/A N/A N/A User objects get username autotest3 N/A new_owner_token N/A N/A N/A N/A Token objects get user new_owner key N/A body N/A owner N/A new_owner username N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format owner_token N/A N/A N/A self assertEqual N/A response status_code 200 N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format owner_token N/A N/A N/A self assertEqual N/A response status_code 403 N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format new_owner_token N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A response data N/A owner N/A new_owner username N/A body N/A username N/A owner username N/A perms_url N/A url /perms/ N/A response N/A N/A N/A self client post perms_url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format new_owner_token N/A N/A N/A self assertEqual N/A response status_code 201 N/A body N/A owner N/A N/A self user username N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format owner_token N/A N/A N/A self assertEqual N/A response status_code 403 N/A body N/A owner N/A N/A self user username N/A response N/A N/A N/A self client post url N/A N/A json dumps body content_type application/json HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 200 N/A response N/A N/A N/A self client get url HTTP_AUTHORIZATION N/A N/A token {} format N/A self token N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A response data N/A owner N/A N/A self user username N/A N/A N/A FAKE_LOG_DATA 
2013-08-15 12:41:25 [33454] [INFO] Starting gunicorn 17.5
2013-08-15 12:41:25 [33454] [INFO] Listening at: http://0.0.0.0:5000 (33454)
2013-08-15 12:41:25 [33454] [INFO] Using worker: sync
2013-08-15 12:41:25 [33457] [INFO] Booting worker with pid 33457
