Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr Str keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Call NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Num Num Assign NameStore Dict Str Str Num Num Assign NameStore Dict Str Str Num Num Assign NameStore Dict Str Str Num Num Return ListLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword ListLoad Str Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword ListLoad Str Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword ListLoad Str Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword ListLoad Str Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Dict Str Str Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Dict Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Dict Call AttributeLoad NameLoad attr Str Str decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad Str Assign NameStore Call NameLoad NameLoad Dict Str Str Str AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword ListLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr ListLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A time N/A uuid N/A mock openstackclient.common exceptions openstackclient.common utils openstackclient.tests fakes openstackclient.tests utils test_utils N/A PASSWORD Pa$$w0rd N/A WASSPORD Wa$$p0rd N/A DROWSSAP dr0w$$aP FakeOddballResource N/A N/A fakes FakeResource N/A get N/A N/A self attr N/A N/A N/A get() is needed for utils.find_resource() N/A N/A attr id N/A N/A N/A self id N/A N/A N/A attr name N/A N/A N/A self name N/A N/A None N/A N/A TestUtils N/A N/A test_utils TestCase N/A test_get_password_good N/A N/A self N/A N/A N/A N/A N/A mock patch getpass.getpass return_value PASSWORD N/A N/A mock_stdin N/A N/A mock Mock N/A N/A mock_stdin isatty N/A N/A mock Mock N/A N/A N/A mock_stdin isatty return_value True N/A N/A N/A self assertEqual PASSWORD N/A N/A utils get_password mock_stdin N/A test_get_password_bad_once N/A N/A self N/A N/A N/A answers N/A PASSWORD WASSPORD DROWSSAP DROWSSAP N/A N/A N/A mock patch getpass.getpass side_effect answers N/A N/A mock_stdin N/A N/A mock Mock N/A N/A mock_stdin isatty N/A N/A mock Mock N/A N/A N/A mock_stdin isatty return_value True N/A N/A N/A self assertEqual DROWSSAP N/A N/A utils get_password mock_stdin N/A test_get_password_no_tty N/A N/A self N/A N/A N/A mock_stdin N/A N/A mock Mock N/A N/A mock_stdin isatty N/A N/A mock Mock N/A N/A N/A mock_stdin isatty return_value False N/A N/A N/A self assertRaises N/A exceptions CommandError N/A utils get_password mock_stdin N/A test_get_password_cntrl_d N/A N/A self N/A N/A N/A N/A N/A mock patch getpass.getpass side_effect N/A EOFError N/A N/A mock_stdin N/A N/A mock Mock N/A N/A mock_stdin isatty N/A N/A mock Mock N/A N/A N/A mock_stdin isatty return_value True N/A N/A N/A self assertRaises N/A exceptions CommandError N/A utils get_password mock_stdin N/A get_test_items N/A N/A self N/A N/A N/A item1 N/A a b 1 2 N/A item2 N/A a b 1 3 N/A item3 N/A a b 2 2 N/A item4 N/A a b 2 1 N/A N/A item1 item2 item3 item4 N/A test_sort_items_with_one_key N/A N/A self N/A N/A N/A items N/A N/A self get_test_items N/A sort_str b N/A expect_items N/A N/A items N/A 3 N/A items N/A 0 N/A items N/A 2 N/A items N/A 1 N/A N/A N/A self assertEqual expect_items N/A N/A utils sort_items items sort_str N/A test_sort_items_with_multiple_keys N/A N/A self N/A N/A N/A items N/A N/A self get_test_items N/A sort_str a,b N/A expect_items N/A N/A items N/A 0 N/A items N/A 1 N/A items N/A 3 N/A items N/A 2 N/A N/A N/A self assertEqual expect_items N/A N/A utils sort_items items sort_str N/A test_sort_items_all_with_direction N/A N/A self N/A N/A N/A items N/A N/A self get_test_items N/A sort_str a:desc,b:desc N/A expect_items N/A N/A items N/A 2 N/A items N/A 3 N/A items N/A 1 N/A items N/A 0 N/A N/A N/A self assertEqual expect_items N/A N/A utils sort_items items sort_str N/A test_sort_items_some_with_direction N/A N/A self N/A N/A N/A items N/A N/A self get_test_items N/A sort_str a,b:desc N/A expect_items N/A N/A items N/A 1 N/A items N/A 0 N/A items N/A 2 N/A items N/A 3 N/A N/A N/A self assertEqual expect_items N/A N/A utils sort_items items sort_str N/A test_sort_items_with_object N/A N/A self N/A N/A N/A item1 N/A N/A mock Mock a 1 b 2 N/A item2 N/A N/A mock Mock a 1 b 3 N/A item3 N/A N/A mock Mock a 2 b 2 N/A item4 N/A N/A mock Mock a 2 b 1 N/A items N/A item1 item2 item3 item4 N/A sort_str b,a N/A expect_items N/A item4 item1 item3 item2 N/A N/A N/A self assertEqual expect_items N/A N/A utils sort_items items sort_str N/A test_sort_items_with_empty_key N/A N/A self N/A N/A N/A items N/A N/A self get_test_items N/A sort_srt N/A N/A N/A self assertEqual items N/A N/A utils sort_items items sort_srt N/A sort_srt None N/A N/A N/A self assertEqual items N/A N/A utils sort_items items sort_srt N/A test_sort_items_with_invalid_key N/A N/A self N/A N/A N/A items N/A N/A self get_test_items N/A sort_str c N/A N/A N/A self assertRaises N/A exceptions CommandError N/A utils sort_items items sort_str N/A test_sort_items_with_invalid_direction N/A N/A self N/A N/A N/A items N/A N/A self get_test_items N/A sort_str a:bad_dir N/A N/A N/A self assertRaises N/A exceptions CommandError N/A utils sort_items items sort_str N/A test_wait_for_status_ok N/A N/A self mock_sleep N/A N/A N/A resource N/A N/A mock MagicMock status ACTIVE N/A status_f N/A N/A mock Mock return_value resource N/A res_id N/A str N/A N/A uuid uuid4 N/A N/A N/A self assertTrue N/A N/A utils wait_for_status status_f res_id N/A N/A N/A mock_sleep assert_not_called N/A N/A N/A N/A mock patch object time sleep test_wait_for_status_ok__with_overrides N/A N/A self mock_sleep N/A N/A N/A resource N/A N/A mock MagicMock my_status COMPLETE N/A status_f N/A N/A mock Mock return_value resource N/A res_id N/A str N/A N/A uuid uuid4 N/A N/A N/A self assertTrue N/A N/A utils wait_for_status status_f res_id status_field my_status success_status N/A complete N/A N/A N/A mock_sleep assert_not_called N/A N/A N/A N/A mock patch object time sleep test_wait_for_status_error N/A N/A self mock_sleep N/A N/A N/A resource N/A N/A mock MagicMock status ERROR N/A status_f N/A N/A mock Mock return_value resource N/A res_id N/A str N/A N/A uuid uuid4 N/A N/A N/A self assertFalse N/A N/A utils wait_for_status status_f res_id N/A N/A N/A mock_sleep assert_not_called N/A N/A N/A N/A mock patch object time sleep test_wait_for_status_error_with_overrides N/A N/A self mock_sleep N/A N/A N/A resource N/A N/A mock MagicMock my_status FAILED N/A status_f N/A N/A mock Mock return_value resource N/A res_id N/A str N/A N/A uuid uuid4 N/A N/A N/A self assertFalse N/A N/A utils wait_for_status status_f res_id status_field my_status error_status N/A failed N/A N/A N/A mock_sleep assert_not_called N/A N/A N/A N/A mock patch object time sleep test_wait_for_delete_ok N/A N/A self mock_sleep N/A N/A N/A resource N/A N/A mock MagicMock status ACTIVE progress None N/A mock_get N/A N/A mock Mock side_effect N/A resource N/A N/A exceptions NotFound 404 N/A manager N/A N/A mock MagicMock get mock_get N/A res_id N/A str N/A N/A uuid uuid4 N/A callback N/A N/A mock Mock N/A N/A N/A self assertTrue N/A N/A utils wait_for_delete manager res_id callback callback N/A N/A N/A mock_sleep assert_called_once_with 5 N/A N/A N/A callback assert_called_once_with 0 N/A N/A N/A N/A mock patch object time sleep test_wait_for_delete_timeout N/A N/A self mock_sleep N/A N/A N/A resource N/A N/A mock MagicMock status ACTIVE N/A mock_get N/A N/A mock Mock return_value resource N/A manager N/A N/A mock MagicMock get mock_get N/A res_id N/A str N/A N/A uuid uuid4 N/A N/A N/A self assertFalse N/A N/A utils wait_for_delete manager res_id sleep_time 1 timeout 1 N/A N/A N/A mock_sleep assert_called_once_with 1 N/A N/A N/A N/A mock patch object time sleep test_wait_for_delete_error N/A N/A self mock_sleep N/A N/A N/A resource N/A N/A mock MagicMock status ERROR N/A mock_get N/A N/A mock Mock return_value resource N/A manager N/A N/A mock MagicMock get mock_get N/A res_id N/A str N/A N/A uuid uuid4 N/A N/A N/A self assertFalse N/A N/A utils wait_for_delete manager res_id N/A N/A N/A mock_sleep assert_not_called N/A N/A N/A N/A mock patch object time sleep test_wait_for_delete_error_with_overrides N/A N/A self mock_sleep N/A N/A N/A resource N/A N/A mock MagicMock my_status FAILED N/A mock_get N/A N/A mock Mock return_value resource N/A manager N/A N/A mock MagicMock get mock_get N/A res_id N/A str N/A N/A uuid uuid4 N/A N/A N/A self assertFalse N/A N/A utils wait_for_delete manager res_id status_field my_status error_status N/A failed N/A N/A N/A mock_sleep assert_not_called N/A N/A N/A N/A mock patch object time sleep test_wait_for_delete_error_with_overrides_exception N/A N/A self mock_sleep N/A N/A N/A mock_get N/A N/A mock Mock side_effect Exception N/A manager N/A N/A mock MagicMock get mock_get N/A res_id N/A str N/A N/A uuid uuid4 N/A N/A N/A self assertTrue N/A N/A utils wait_for_delete manager res_id exception_name N/A Exception N/A N/A N/A mock_sleep assert_not_called N/A N/A N/A N/A mock patch object time sleep test_build_kwargs_dict_value_set N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A arg_bla bla N/A N/A utils build_kwargs_dict arg_bla bla N/A test_build_kwargs_dict_value_None N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A utils build_kwargs_dict arg_bla None N/A test_build_kwargs_dict_value_empty_str N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A utils build_kwargs_dict arg_bla N/A N/A NoUniqueMatch N/A Exception N/A N/A N/A TestFindResource N/A N/A test_utils TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestFindResource self setUp N/A N/A self name legos N/A N/A self expected N/A N/A mock Mock N/A N/A self manager N/A N/A mock Mock N/A N/A N/A self manager resource_class N/A N/A mock Mock N/A N/A N/A N/A self manager resource_class __name__ lego N/A test_find_resource_get_int N/A N/A self N/A N/A N/A N/A N/A self manager get N/A N/A mock Mock return_value N/A self expected N/A result N/A N/A utils find_resource N/A self manager 1 N/A N/A N/A self assertEqual N/A self expected result N/A N/A N/A N/A N/A self manager get assert_called_with 1 N/A test_find_resource_get_int_string N/A N/A self N/A N/A N/A N/A N/A self manager get N/A N/A mock Mock return_value N/A self expected N/A result N/A N/A utils find_resource N/A self manager 2 N/A N/A N/A self assertEqual N/A self expected result N/A N/A N/A N/A N/A self manager get assert_called_with 2 N/A test_find_resource_get_uuid N/A N/A self N/A N/A N/A uuid 9a0dc2a0-ad0d-11e3-a5e2-0800200c9a66 N/A N/A N/A self manager get N/A N/A mock Mock return_value N/A self expected N/A result N/A N/A utils find_resource N/A self manager uuid N/A N/A N/A self assertEqual N/A self expected result N/A N/A N/A N/A N/A self manager get assert_called_with uuid N/A test_find_resource_get_whatever N/A N/A self N/A N/A N/A N/A N/A self manager get N/A N/A mock Mock return_value N/A self expected N/A result N/A N/A utils find_resource N/A self manager whatever N/A N/A N/A self assertEqual N/A self expected result N/A N/A N/A N/A N/A self manager get assert_called_with whatever N/A test_find_resource_find N/A N/A self N/A N/A N/A N/A N/A self manager get N/A N/A mock Mock side_effect N/A Exception Boom! N/A N/A N/A self manager find N/A N/A mock Mock return_value N/A self expected N/A result N/A N/A utils find_resource N/A self manager N/A self name N/A N/A N/A self assertEqual N/A self expected result N/A N/A N/A N/A N/A self manager get assert_called_with N/A self name N/A N/A N/A N/A N/A self manager find assert_called_with name N/A self name N/A test_find_resource_find_not_found N/A N/A self N/A N/A N/A N/A N/A self manager get N/A N/A mock Mock side_effect N/A Exception Boom! N/A N/A N/A self manager find N/A N/A mock Mock side_effect N/A N/A exceptions NotFound 404 2 N/A result N/A N/A self assertRaises N/A exceptions CommandError N/A utils find_resource N/A self manager N/A self name N/A N/A N/A self assertEqual No lego with a name or ID of 'legos' exists. N/A str result N/A N/A N/A N/A N/A self manager get assert_called_with N/A self name N/A N/A N/A N/A N/A self manager find assert_called_with name N/A self name N/A test_find_resource_list_forbidden N/A N/A self N/A N/A N/A N/A N/A self manager get N/A N/A mock Mock side_effect N/A Exception Boom! N/A N/A N/A self manager find N/A N/A mock Mock side_effect N/A Exception Boom! N/A N/A N/A self manager list N/A N/A mock Mock side_effect N/A N/A exceptions Forbidden 403 N/A N/A N/A self assertRaises N/A exceptions Forbidden N/A utils find_resource N/A self manager N/A self name N/A N/A N/A N/A N/A self manager list assert_called_with N/A test_find_resource_find_no_unique N/A N/A self N/A N/A N/A N/A N/A self manager get N/A N/A mock Mock side_effect N/A Exception Boom! N/A N/A N/A self manager find N/A N/A mock Mock side_effect N/A NoUniqueMatch N/A result N/A N/A self assertRaises N/A exceptions CommandError N/A utils find_resource N/A self manager N/A self name N/A N/A N/A self assertEqual More than one lego exists with the name 'legos'. N/A str result N/A N/A N/A N/A N/A self manager get assert_called_with N/A self name N/A N/A N/A N/A N/A self manager find assert_called_with name N/A self name N/A test_find_resource_silly_resource N/A N/A self N/A N/A N/A N/A self manager N/A N/A mock Mock N/A N/A N/A self manager get N/A N/A mock Mock side_effect N/A Exception Boom! N/A N/A N/A self manager find N/A N/A mock Mock side_effect N/A AttributeError 'Controller' object has no attribute 'find' N/A silly_resource N/A FakeOddballResource None N/A id name 12345 N/A self name loaded True N/A N/A N/A self manager list N/A N/A mock Mock return_value N/A silly_resource N/A result N/A N/A utils find_resource N/A self manager N/A self name N/A N/A N/A self assertEqual silly_resource result N/A N/A N/A N/A N/A self manager get assert_called_with N/A self name N/A N/A N/A N/A N/A self manager find assert_called_with name N/A self name N/A test_find_resource_silly_resource_not_found N/A N/A self N/A N/A N/A N/A self manager N/A N/A mock Mock N/A N/A N/A self manager get N/A N/A mock Mock side_effect N/A Exception Boom! N/A N/A N/A self manager find N/A N/A mock Mock side_effect N/A AttributeError 'Controller' object has no attribute 'find' N/A N/A N/A self manager list N/A N/A mock Mock return_value N/A N/A result N/A N/A self assertRaises N/A exceptions CommandError N/A utils find_resource N/A self manager N/A self name N/A N/A N/A self assertEqual Could not find resource legos N/A str result N/A N/A N/A N/A N/A self manager get assert_called_with N/A self name N/A N/A N/A N/A N/A self manager find assert_called_with name N/A self name N/A test_format_dict N/A N/A self N/A N/A N/A expected a='b', c='d', e='f' N/A N/A N/A self assertEqual expected N/A N/A utils format_dict N/A a c e b d f N/A N/A N/A self assertEqual expected N/A N/A utils format_dict N/A e c a f d b N/A test_format_list N/A N/A self N/A N/A N/A expected a, b, c N/A N/A N/A self assertEqual expected N/A N/A utils format_list N/A a b c N/A N/A N/A self assertEqual expected N/A N/A utils format_list N/A c b a N/A test_format_list_of_dicts N/A N/A self N/A N/A N/A expected a='b', c='d'
e='f' N/A sorted_data N/A N/A a c b d N/A e f N/A unsorted_data N/A N/A c a d b N/A e f N/A N/A N/A self assertEqual expected N/A N/A utils format_list_of_dicts sorted_data N/A N/A N/A self assertEqual expected N/A N/A utils format_list_of_dicts unsorted_data N/A N/A N/A self assertEqual N/A N/A utils format_list_of_dicts N/A N/A N/A N/A self assertEqual N/A N/A utils format_list_of_dicts N/A N/A N/A test_format_list_separator N/A N/A self N/A N/A N/A expected a
b
c N/A actual_pre_sorted N/A N/A utils format_list N/A a b c separator N/A actual_unsorted N/A N/A utils format_list N/A c b a separator N/A N/A N/A self assertEqual expected actual_pre_sorted N/A N/A N/A self assertEqual expected actual_unsorted N/A N/A