Module Expr Str Import alias ImportFrom alias alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Assign NameStore Dict Str ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Call NameLoad Call NameLoad Assign NameStore Dict Str ListLoad Call NameLoad Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Str Str Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Str Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Dict Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Dict Str Str Str Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Dict Str Str Str Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Dict Str Str Str Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Dict Str Str Str Str Num Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Dict Str Str Str Str Num Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Dict Str Str Str Str Num Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Dict Str Str Str Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Dict Str Str Str Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Dict Str Str Str Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Dict Str Str Dict Str Str Str Str Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Dict Str Str Dict Str Str Str Str Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Dict Str Str Dict Str Str Str Str Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Dict SubscriptLoad NameLoad Index Str Dict Str Str Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Dict Str NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict Str Str Str Str Num Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad decorator_list decorator_list
N/A N/A 
Copyright 2015 Hewlett-Packard

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

 N/A unittest mock Mock patch N/A random N/A falcon common * freezer_api.common.exceptions * freezer_api.api.v1 sessions v1_sessions TestSessionsCollectionResource N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self mock_db N/A Mock N/A N/A self mock_req N/A Mock N/A N/A N/A N/A self mock_req get_header return_value N/A fake_session_0 N/A user_id N/A N/A N/A self mock_req status N/A falcon HTTP_200 N/A N/A self resource N/A N/A v1_sessions SessionsCollectionResource N/A self mock_db N/A N/A self mock_json_body N/A Mock N/A N/A N/A self mock_json_body return_value N/A N/A N/A N/A self resource json_body N/A self mock_json_body N/A test_on_get_return_empty_list N/A N/A self N/A N/A N/A N/A N/A N/A self mock_db search_session return_value N/A N/A expected_result N/A sessions N/A N/A N/A N/A N/A self resource on_get N/A self mock_req N/A self mock_req N/A result N/A N/A self mock_req body N/A N/A N/A self assertEqual result expected_result N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_200 N/A test_on_get_return_correct_list N/A N/A self N/A N/A N/A N/A N/A N/A self mock_db search_session return_value N/A N/A get_fake_session_0 N/A get_fake_session_1 N/A expected_result N/A sessions N/A N/A get_fake_session_0 N/A get_fake_session_1 N/A N/A N/A N/A self resource on_get N/A self mock_req N/A self mock_req N/A result N/A N/A self mock_req body N/A N/A N/A self assertEqual result expected_result N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_200 N/A test_on_post_raises_when_missing_body N/A N/A self N/A N/A N/A N/A N/A N/A self mock_db add_session return_value N/A fake_session_0 N/A session_id N/A N/A N/A self assertRaises BadDataFormat N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A test_on_post_inserts_correct_data N/A N/A self N/A N/A N/A session N/A get_fake_session_0 N/A N/A N/A self mock_json_body return_value session N/A N/A N/A N/A self mock_db add_session return_value pjiofrdslaikfunr N/A expected_result N/A session_id pjiofrdslaikfunr N/A N/A N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_201 N/A N/A N/A self assertEqual N/A N/A self mock_req body expected_result N/A N/A TestSessionsResource N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self mock_db N/A Mock N/A N/A self mock_req N/A Mock N/A N/A N/A N/A self mock_req get_header return_value N/A fake_session_0 N/A user_id N/A N/A N/A self mock_req status N/A falcon HTTP_200 N/A N/A self resource N/A N/A v1_sessions SessionsResource N/A self mock_db N/A N/A self mock_json_body N/A Mock N/A N/A N/A self mock_json_body return_value N/A N/A N/A N/A self resource json_body N/A self mock_json_body N/A test_create_resource N/A N/A self N/A N/A N/A N/A N/A self assertIsInstance N/A self resource N/A v1_sessions SessionsResource N/A test_on_get_return_no_result_and_404_when_not_found N/A N/A self N/A N/A N/A N/A N/A N/A self mock_db get_session return_value None N/A N/A N/A self mock_req body None N/A N/A N/A N/A self resource on_get N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A N/A N/A self assertIsNone N/A N/A self mock_req body N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_404 N/A test_on_get_return_correct_data N/A N/A self N/A N/A N/A N/A N/A N/A self mock_db get_session return_value N/A get_fake_session_0 N/A N/A N/A N/A self resource on_get N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A result N/A N/A self mock_req body N/A N/A N/A self assertEqual result N/A get_fake_session_0 N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_200 N/A test_on_delete_removes_proper_data N/A N/A self N/A N/A N/A N/A N/A N/A self resource on_delete N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A result N/A N/A self mock_req body N/A expected_result N/A session_id N/A fake_session_0 N/A session_id N/A N/A N/A self assertEquals N/A N/A self mock_req status N/A falcon HTTP_204 N/A N/A N/A self assertEqual result expected_result N/A test_on_patch_ok_with_some_fields N/A N/A self N/A N/A N/A new_version N/A N/A random randint 0 99 N/A N/A N/A N/A self mock_db update_session return_value new_version N/A patch_doc N/A some_field because some_value size_matters N/A N/A N/A self mock_json_body return_value patch_doc N/A expected_patch N/A N/A patch_doc copy N/A expected_result N/A session_id version N/A fake_session_0 N/A session_id new_version N/A N/A N/A N/A self resource on_patch N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A N/A N/A N/A N/A self mock_db update_session assert_called_with user_id N/A fake_session_0 N/A user_id session_id N/A fake_session_0 N/A session_id patch_doc patch_doc N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_200 N/A result N/A N/A self mock_req body N/A N/A N/A self assertEqual result expected_result N/A test_on_post_ok N/A N/A self N/A N/A N/A new_version N/A N/A random randint 0 99 N/A N/A N/A N/A self mock_db replace_session return_value new_version N/A session N/A get_fake_session_0 N/A N/A N/A self mock_json_body return_value session N/A expected_result N/A session_id version N/A fake_session_0 N/A session_id new_version N/A N/A N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_201 N/A N/A N/A self assertEqual N/A N/A self mock_req body expected_result N/A test_on_post_raises_when_db_replace_session_raises N/A N/A self N/A N/A N/A N/A N/A N/A self mock_db replace_session side_effect N/A AccessForbidden regular test failure N/A session N/A get_fake_session_0 N/A N/A N/A self mock_json_body return_value session N/A N/A N/A self assertRaises AccessForbidden N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A N/A TestSessionsAction N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self mock_db N/A Mock N/A N/A self mock_req N/A Mock N/A N/A N/A N/A self mock_req get_header return_value N/A fake_session_0 N/A user_id N/A N/A N/A self mock_req status N/A falcon HTTP_200 N/A N/A self resource N/A N/A v1_sessions SessionsAction N/A self mock_db N/A N/A self mock_json_body N/A Mock N/A N/A N/A self mock_json_body return_value N/A N/A N/A N/A self resource json_body N/A self mock_json_body N/A test_create_resource N/A N/A self N/A N/A N/A N/A N/A self assertIsInstance N/A self resource N/A v1_sessions SessionsAction N/A test_on_post_raises_when_unable_to_read_action_from_body N/A N/A self N/A N/A N/A N/A N/A self mock_json_body return_value N/A N/A N/A N/A self assertRaises BadDataFormat N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A test_on_post_start_action_ok N/A N/A self N/A N/A N/A new_version N/A N/A random randint 0 99 N/A N/A N/A N/A self mock_db get_session return_value N/A get_fake_session_0 N/A N/A N/A N/A self mock_db update_session return_value new_version N/A action N/A start N/A job_id current_tag job_id_2 5 N/A N/A N/A self mock_json_body return_value action N/A expected_result N/A result session_tag success 6 N/A N/A N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_202 N/A N/A N/A self assertEqual N/A N/A self mock_req body expected_result N/A test_on_post_start_action_raises_BadDataFormat_when_job_not_in_session N/A N/A self N/A N/A N/A new_version N/A N/A random randint 0 99 N/A N/A N/A N/A self mock_db get_session return_value N/A get_fake_session_0 N/A N/A N/A N/A self mock_db update_session return_value new_version N/A action N/A start N/A job_id current_tag missedme 5 N/A N/A N/A self mock_json_body return_value action N/A N/A N/A self assertRaises BadDataFormat N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A test_on_post_start_action_raises_BadDataFormat_when_current_tag_too_high N/A N/A self N/A N/A N/A new_version N/A N/A random randint 0 99 N/A N/A N/A N/A self mock_db get_session return_value N/A get_fake_session_0 N/A N/A N/A N/A self mock_db update_session return_value new_version N/A action N/A start N/A job_id current_tag missedme 6 N/A N/A N/A self mock_json_body return_value action N/A N/A N/A self assertRaises BadDataFormat N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A test_on_post_end_action_ok N/A N/A self N/A N/A N/A new_version N/A N/A random randint 0 99 N/A N/A N/A N/A self mock_db get_session return_value N/A get_fake_session_0 N/A N/A N/A N/A self mock_db update_session return_value new_version N/A action N/A end N/A job_id current_tag result job_id_2 5 success N/A N/A N/A self mock_json_body return_value action N/A expected_result N/A result session_tag success 5 N/A N/A N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_202 N/A N/A N/A self assertEqual N/A N/A self mock_req body expected_result N/A test_on_post_end_action_raises_BadDataFormat_when_job_not_in_session N/A N/A self N/A N/A N/A new_version N/A N/A random randint 0 99 N/A N/A N/A N/A self mock_db get_session return_value N/A get_fake_session_0 N/A N/A N/A N/A self mock_db update_session return_value new_version N/A action N/A end N/A job_id current_tag result ahahahahah 5 success N/A N/A N/A self mock_json_body return_value action N/A N/A N/A self assertRaises BadDataFormat N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A test_on_post_raises_MethodNotImplemented_when_methon_not_implemented N/A N/A self N/A N/A N/A new_version N/A N/A random randint 0 99 N/A N/A N/A N/A self mock_db get_session return_value N/A get_fake_session_0 N/A N/A N/A N/A self mock_db update_session return_value new_version N/A action N/A method_not_implemented N/A job_id current_tag result ahahahahah 5 success N/A N/A N/A self mock_json_body return_value action N/A N/A N/A self assertRaises MethodNotImplemented N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A test_on_post_start_succeeds_in_holdoff_if_tag_needs_not_increment N/A N/A self mock_time N/A N/A N/A N/A N/A mock_time time return_value 1000 N/A new_version N/A N/A random randint 0 99 N/A session_doc N/A get_fake_session_0 N/A N/A session_doc N/A time_start 999 N/A N/A N/A N/A self mock_db get_session return_value session_doc N/A N/A N/A N/A self mock_db update_session return_value new_version N/A action N/A start N/A job_id current_tag job_id_2 4 N/A N/A N/A self mock_json_body return_value action N/A expected_result N/A result session_tag success 5 N/A N/A N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_202 N/A N/A N/A self assertEqual N/A N/A self mock_req body expected_result N/A N/A patch freezer_api.api.v1.sessions.time test_on_post_start_replies_holdoff_if_tag_would_increment N/A N/A self mock_time N/A N/A N/A N/A N/A mock_time time return_value 1000 N/A new_version N/A N/A random randint 0 99 N/A session_doc N/A get_fake_session_0 N/A N/A session_doc N/A time_start 999 N/A N/A N/A N/A self mock_db get_session return_value session_doc N/A N/A N/A N/A self mock_db update_session return_value new_version N/A action N/A start N/A job_id current_tag job_id_2 5 N/A N/A N/A self mock_json_body return_value action N/A expected_result N/A result session_tag hold-off 5 N/A N/A N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_202 N/A N/A N/A self assertEqual N/A N/A self mock_req body expected_result N/A N/A patch freezer_api.api.v1.sessions.time test_on_post_start_outofholdoff_replies_outofsync_when_tag_too_low N/A N/A self mock_time N/A N/A N/A N/A N/A mock_time time return_value 2000 N/A new_version N/A N/A random randint 0 99 N/A session_doc N/A get_fake_session_0 N/A N/A session_doc N/A time_start 999 N/A N/A N/A N/A self mock_db get_session return_value session_doc N/A N/A N/A N/A self mock_db update_session return_value new_version N/A action N/A start N/A job_id current_tag job_id_2 2 N/A N/A N/A self mock_json_body return_value action N/A expected_result N/A result session_tag out-of-sync 5 N/A N/A N/A N/A self resource on_post N/A self mock_req N/A self mock_req N/A fake_session_0 N/A session_id N/A N/A N/A self assertEqual N/A N/A self mock_req status N/A falcon HTTP_202 N/A N/A N/A self assertEqual N/A N/A self mock_req body expected_result N/A N/A patch freezer_api.api.v1.sessions.time N/A TestSessions N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self session_doc N/A N/A N/A self session N/A N/A v1_sessions Session N/A self session_doc N/A test_create_resource N/A N/A self N/A N/A N/A N/A N/A self assertIsInstance N/A self session N/A v1_sessions Session N/A test_overall_result_running N/A N/A self N/A N/A N/A N/A N/A self session_doc N/A jobs N/A job1 job2 N/A status result completed success N/A status result running N/A res N/A N/A N/A self session get_job_overall_result N/A N/A N/A self assertEquals res running N/A test_overall_result_fail N/A N/A self N/A N/A N/A N/A N/A self session_doc N/A jobs N/A job1 job2 N/A status result completed success N/A status result completed fail N/A res N/A N/A N/A self session get_job_overall_result N/A N/A N/A self assertEquals res fail N/A test_overall_result_success N/A N/A self N/A N/A N/A N/A N/A self session_doc N/A jobs N/A job1 job2 N/A status result completed success N/A status result completed success N/A res N/A N/A N/A self session get_job_overall_result N/A N/A N/A self assertEquals res success N/A N/A TestSessionsJobs N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self mock_db N/A Mock N/A N/A self mock_req N/A Mock N/A N/A N/A N/A self mock_req get_header return_value N/A fake_session_0 N/A user_id N/A N/A N/A self mock_req status N/A falcon HTTP_200 N/A N/A self resource N/A N/A v1_sessions SessionsJob N/A self mock_db N/A test_create_resource N/A N/A self N/A N/A N/A N/A N/A self assertIsInstance N/A self resource N/A v1_sessions SessionsJob N/A test_on_put_adds_job_to_session_jobs N/A N/A self N/A N/A N/A session N/A get_fake_session_0 N/A job N/A get_fake_job_0 N/A job_info N/A N/A job N/A job_id N/A client_id status result time_started time_ended N/A job N/A client_id N/A N/A job N/A job_schedule N/A status N/A N/A job N/A job_schedule N/A result N/A N/A job N/A job_schedule N/A time_started N/A N/A job N/A job_schedule N/A time_ended N/A session_update_doc N/A jobs job_info N/A N/A N/A N/A self mock_db get_session return_value session N/A N/A N/A N/A self mock_db get_job return_value job N/A N/A N/A N/A self resource on_put N/A self mock_req N/A self mock_req N/A session N/A session_id N/A job N/A job_id N/A N/A N/A N/A N/A self mock_db update_session assert_called_with user_id N/A session N/A user_id session_id N/A session N/A session_id patch_doc session_update_doc N/A test_on_put_updates_job_with_session_info N/A N/A self N/A N/A N/A session N/A get_fake_session_0 N/A job N/A get_fake_job_0 N/A N/A N/A N/A self mock_db get_session return_value session N/A N/A N/A N/A self mock_db get_job return_value job N/A job_update_doc N/A session_id session_tag job_schedule N/A session N/A session_id N/A session N/A session_tag N/A session N/A schedule N/A N/A N/A N/A self resource on_put N/A self mock_req N/A self mock_req N/A session N/A session_id N/A job N/A job_id N/A N/A N/A N/A N/A self mock_db update_job assert_called_with user_id N/A session N/A user_id job_id N/A job N/A job_id patch_doc job_update_doc N/A test_on_delete_removes_job_from_session_jobs N/A N/A self N/A N/A N/A session N/A get_fake_session_0 N/A updated_session N/A get_fake_session_1 N/A job N/A get_fake_job_0 N/A N/A N/A N/A self mock_db get_session return_value session N/A N/A N/A N/A self mock_db get_job return_value job N/A N/A N/A N/A self resource on_delete N/A self mock_req N/A self mock_req N/A session N/A session_id job_id_2 N/A N/A N/A N/A N/A self mock_db replace_session assert_called_with user_id N/A session N/A user_id session_id N/A session N/A session_id doc updated_session N/A test_on_delete_removes_session_info_from_job_and_stops_job N/A N/A self N/A N/A N/A session N/A get_fake_session_0 N/A job N/A get_fake_job_0 N/A N/A N/A N/A self mock_db get_session return_value session N/A N/A N/A N/A self mock_db get_job return_value job N/A job_update_doc N/A session_id session_tag job_schedule 0 N/A event stop N/A N/A N/A N/A self resource on_delete N/A self mock_req N/A self mock_req N/A session N/A session_id N/A job N/A job_id N/A N/A N/A N/A N/A self mock_db update_job assert_called_with user_id N/A session N/A user_id job_id N/A job N/A job_id patch_doc job_update_doc N/A N/A