Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpOr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list decorator_list
N/A N/A 
Copyright 2014 Rackspace

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.
 cafe.drivers.unittest.decorators tags cloudcafe.images.common.types TaskTypes cloudroast.images.fixtures ImagesFixture TestGetTasks N/A ImagesFixture N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super TestGetTasks cls setUpClass N/A N/A cls tasks N/A N/A N/A cls images_behavior create_new_tasks count 2 N/A classmethod test_get_tasks N/A N/A self N/A N/A N/A 
        @summary: Get tasks

        1) Get tasks
        2) Verify that the response code is 200
        3) Verify that the list is not empty
        4) Verify that the owner of each listed task belongs to the user
        performing the request and that the data is correct
         N/A response N/A N/A N/A self images_client list_tasks N/A N/A N/A self assertEqual N/A response status_code 200 N/A get_tasks N/A response entity N/A N/A N/A self assertNotEqual N/A len get_tasks 0 N/A N/A N/A N/A self _validate_listed_task task N/A task get_tasks N/A N/A tags type smoke test_get_tasks_pagination N/A N/A self N/A N/A N/A 
        @summary: Get all tasks by paginating through all results and verify
        that the created images are present

        1) Given two created tasks, get tasks
        2) Verify that the list is not empty
        3) Verify that the owner of each listed task belongs to the user
        performing the request and that the data is correct
        4) Verify that the created tasks are in the list of tasks
         N/A count 2 N/A created_tasks N/A N/A first_task N/A N/A N/A self tasks pop N/A second_task N/A N/A N/A self tasks pop N/A get_tasks N/A N/A N/A self images_behavior list_tasks_pagination N/A N/A N/A self assertNotEqual N/A len get_tasks 0 N/A task get_tasks N/A N/A N/A N/A self _validate_listed_task task N/A N/A N/A N/A task id_ N/A first_task id_ N/A N/A task id_ N/A second_task id_ N/A N/A N/A N/A created_tasks append task N/A N/A N/A self assertEqual N/A len created_tasks count N/A N/A tags type positive regression true test_get_tasks_filter_type N/A N/A self N/A N/A N/A 
        @summary: Get tasks with a filter of type

        1) Given two created tasks, get tasks using the filter of 'type' set
        to 'import'
        2) Verify that the list is not empty
        3) Verify that the owner of each listed task belongs to the user
        performing the request
        4) Verify that the type of each listed task is 'import'
         N/A get_tasks N/A N/A N/A self images_behavior list_tasks_pagination type_ N/A TaskTypes IMPORT N/A N/A N/A self assertNotEqual N/A len get_tasks 0 N/A task get_tasks N/A N/A N/A N/A self assertEqual N/A task owner N/A self tenant_id N/A N/A N/A self assertEqual N/A task type_ N/A TaskTypes IMPORT N/A N/A tags type positive regression true _validate_listed_task N/A N/A self task N/A N/A N/A 
        @summary: Validate that the listed task does not contain certain
        properties and that the owner is correct
         N/A errors N/A N/A N/A N/A task input_ None N/A N/A N/A N/A errors append N/A N/A N/A self error_msg format input None N/A task input_ N/A N/A N/A task result None N/A N/A N/A N/A errors append N/A N/A N/A self error_msg format result None N/A task result N/A N/A N/A task owner N/A self tenant_id N/A N/A N/A N/A errors append N/A N/A N/A self error_msg format owner N/A self tenant_id N/A task owner N/A N/A N/A self assertListEqual errors N/A N/A N/A