Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Num Assign NameStore BinOpSub Call NameLoad NameLoad Num TryExcept body While CompareLt NameLoad NameLoad body Assign SubscriptStore NameLoad Index Call AttributeLoad Str attr NameLoad Call AttributeLoad SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Str Index Num attr Str AugAssignAdd NameStore Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Str Assign NameStore Dict Str Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr decorator_list Call NameLoad Call NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Str Assign NameStore Dict Str Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr decorator_list Call NameLoad Call NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Str Assign NameStore Dict Str Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list Call NameLoad Call NameLoad decorator_list NameLoad
N/A N/A 
Copyright 2013 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 DataDrivenFixture data_driven_test cloudcafe.objectstorage.objectstorage_api.common.constants Constants cloudroast.objectstorage.fixtures ObjectStorageFixture cloudroast.objectstorage.generators ObjectDatasetList N/A CONTAINER_NAME object_range_request_test_container N/A CONTENT_MSG expected {0} in the content body. recieved {1} N/A CONTENT_TYPE_MSG expected content_type {0} recieved {1} N/A MULTIPART multipart/byteranges;boundary= ObjectRangeRequestTest N/A ObjectStorageFixture N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ObjectRangeRequestTest self setUp N/A N/A self container_name N/A N/A self create_temp_container descriptor CONTAINER_NAME N/A N/A self object_name N/A Constants VALID_OBJECT_NAME N/A get_boundary N/A N/A self content_type_header N/A N/A N/A 
        returns the boundary from the multipart content-type header:
        "multipart/byteranges;boundary=examplemsgboundary"
         N/A boundary N/A header_tokens N/A N/A content_type_header split ;boundary= N/A N/A N/A boundary N/A header_tokens N/A 1 N/A N/A N/A IndexError N/A error N/A N/A N/A N/A self fail msg N/A N/A content-type header: "{0}" could not be parsed. error: {1} format N/A str content_type_header error N/A boundary N/A parse_msg N/A N/A self content boundary N/A N/A N/A 
        splits the content body using the boundary returned in the
        multipart content-type header and returns the data
         N/A multipart_content N/A N/A N/A N/A split_body N/A N/A content split N/A N/A --{0} format boundary N/A N/A N/A AttributeError N/A error N/A N/A N/A N/A self fail N/A N/A body cannot be split on boundary. error: {0} format error N/A i 1 N/A end N/A N/A len split_body 1 N/A N/A N/A N/A i end N/A N/A N/A multipart_content N/A N/A N/A value{0} format i N/A N/A N/A N/A N/A N/A split_body N/A i split N/A 1 strip N/A i 1 N/A N/A N/A AttributeError N/A error N/A N/A N/A N/A self error N/A N/A error parsing content. error: {0} format error N/A multipart_content N/A ddtest_basic_object_range_request N/A N/A self N/A kwargs N/A N/A 
        Scenario:
            Perform a get with various range request headers.

        Expected Results:
            The data returned should be within the range specified.
         N/A obj_data grok_one drok_two N/A headers N/A Content-Length N/A str N/A len obj_data N/A N/A N/A N/A self behaviors create_object N/A self container_name N/A self object_name headers headers data obj_data N/A headers N/A Range bytes=-3 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A N/A N/A self assertEqual N/A response content two msg N/A N/A CONTENT_MSG format two N/A str N/A response content N/A headers N/A Range bytes=0-3 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A N/A N/A self assertEqual N/A response content grok msg N/A N/A CONTENT_MSG format grok N/A str N/A response content N/A headers N/A Range bytes=4-4 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A N/A N/A self assertEqual N/A response content _ msg N/A N/A CONTENT_MSG format _ N/A str N/A response content N/A headers N/A Range bytes=9- N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A N/A N/A self assertEqual N/A response content drok_two msg N/A N/A CONTENT_MSG format drok_two N/A str N/A response content N/A N/A data_driven_test N/A ObjectDatasetList ddtest_multi_part_range_request N/A N/A self N/A kwargs N/A N/A 
        Scenario:
            Perform a get with various multi-part range request headers.

        Expected Results:
            The data returned should be a multi-part message within the
            range specified.
            The content type should be "multipart/byteranges" and should
            contain a delimeter.
            the body should be seperated by this delimeter and the data
            in the body should be in order.
         N/A obj_data grok_one drok_two N/A headers N/A Content-Length N/A str N/A len obj_data N/A N/A N/A N/A self behaviors create_object N/A self container_name N/A self object_name headers headers data obj_data N/A headers N/A Range bytes=0-3,-3 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A content_type N/A N/A N/A response headers get content-type N/A N/A N/A self assertTrue N/A N/A N/A str content_type startswith MULTIPART N/A boundary N/A N/A self get_boundary content_type N/A N/A N/A self assertNotEqual boundary N/A parsed_content N/A N/A self parse_msg N/A response content boundary N/A N/A N/A self assertEqual grok N/A N/A parsed_content get value1 msg N/A N/A CONTENT_MSG format grok N/A str N/A response content N/A N/A N/A self assertEqual two N/A N/A parsed_content get value2 msg N/A N/A CONTENT_MSG format two N/A str N/A response content N/A headers N/A Range bytes=-3,0-3 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A content_type N/A N/A N/A response headers get content-type N/A N/A N/A self assertTrue N/A N/A N/A str content_type startswith MULTIPART N/A boundary N/A N/A self get_boundary content_type N/A N/A N/A self assertNotEqual boundary N/A parsed_content N/A N/A self parse_msg N/A response content boundary N/A N/A N/A self assertEqual two N/A N/A parsed_content get value1 msg N/A N/A CONTENT_MSG format two N/A str N/A response content N/A N/A N/A self assertEqual grok N/A N/A parsed_content get value2 msg N/A N/A CONTENT_MSG format grok N/A str N/A response content N/A headers N/A Range bytes=9-,0-3 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A content_type N/A N/A N/A response headers get content-type N/A N/A N/A self assertTrue N/A N/A N/A str content_type startswith MULTIPART N/A boundary N/A N/A self get_boundary content_type N/A N/A N/A self assertNotEqual boundary N/A parsed_content N/A N/A self parse_msg N/A response content boundary N/A N/A N/A self assertEqual drok_two N/A N/A parsed_content get value1 msg N/A N/A CONTENT_MSG format drok_two N/A str N/A response content N/A N/A N/A self assertEqual grok N/A N/A parsed_content get value2 msg N/A N/A CONTENT_MSG format grok N/A str N/A response content N/A headers N/A Range bytes=0-3,5-7,9-12 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A content_type N/A N/A N/A response headers get content-type N/A N/A N/A self assertTrue N/A N/A N/A str content_type startswith MULTIPART N/A boundary N/A N/A self get_boundary content_type N/A N/A N/A self assertNotEqual boundary N/A parsed_content N/A N/A self parse_msg N/A response content boundary N/A N/A N/A self assertEqual grok N/A N/A parsed_content get value1 msg N/A N/A CONTENT_MSG format grok N/A str N/A response content N/A N/A N/A self assertEqual one N/A N/A parsed_content get value2 msg N/A N/A CONTENT_MSG format one N/A str N/A response content N/A N/A N/A self assertEqual drok N/A N/A parsed_content get value3 msg N/A N/A CONTENT_MSG format drok N/A str N/A response content N/A N/A data_driven_test N/A ObjectDatasetList ddtest_range_request_with_bad_ranges N/A N/A self N/A kwargs N/A N/A 
        Scenario:
            Perform a get with various range request headers not specified
            in the docs.

        Expected Results:
            The request should return data without breaking.
         N/A obj_data grok_one drok_two N/A headers N/A Content-Length N/A str N/A len obj_data N/A N/A N/A N/A self behaviors create_object N/A self container_name N/A self object_name headers headers data obj_data N/A headers N/A Range bytes=foobar N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A N/A N/A self assertEqual obj_data N/A response content msg N/A N/A CONTENT_MSG format obj_data N/A str N/A response content N/A headers N/A Range bytes=4 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A N/A N/A self assertEqual obj_data N/A response content msg N/A N/A CONTENT_MSG format obj_data N/A str N/A response content N/A headers N/A Range bytes=7-1 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A N/A N/A self assertEqual obj_data N/A response content msg N/A N/A CONTENT_MSG format obj_data N/A str N/A response content N/A headers N/A Range bytes=-160-5 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A N/A N/A self assertEqual obj_data N/A response content msg N/A N/A CONTENT_MSG format obj_data N/A str N/A response content N/A headers N/A Range bytes=5-160 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A N/A N/A self assertEqual one drok_two N/A response content msg N/A N/A CONTENT_MSG format one drok_two N/A str N/A response content N/A headers N/A Range bytes=-160-160 N/A response N/A N/A N/A self client get_object N/A self container_name N/A self object_name headers headers N/A N/A N/A self assertEqual obj_data N/A response content msg N/A N/A CONTENT_MSG format obj_data N/A str N/A response content N/A N/A data_driven_test N/A ObjectDatasetList N/A DataDrivenFixture