Module Expr Str Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list NameLoad decorator_list
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.
 N/A unittest cloudcafe.compute.common.constants Constants cloudcafe.compute.flavors_api.models.flavor Flavor FlavorModelTest N/A object N/A test_flavor_id N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self flavor id 2 N/A test_flavor_name N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self flavor name 512MB Standard Instance N/A test_flavor_vcpus N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self flavor vcpus 1 N/A test_flavor_ram N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self flavor ram 512 N/A test_flavor_disk N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self flavor disk 20 N/A test_flavor_swap N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self flavor swap 512 N/A test_flavor_rxtx_factor N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self flavor rxtx_factor 2.0 N/A test_flavor_ephemeral_disk N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self flavor ephemeral_disk 250 N/A test_flavor_links_self N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A self flavor links self https://127.0.0.1/v2/660/flavors/2 N/A test_flavor_links_bookmark N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A self flavor links bookmark https://127.0.0.1/660/flavors/2 N/A test_flavor_extra_specs N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A N/A self flavor extra_specs get field1 1 N/A N/A FlavorXMLModelTest N/A N/A unittest TestCase FlavorModelTest N/A setUpClass N/A N/A cls N/A N/A N/A N/A cls flavor_xml N/A N/A 
            <flavor xmlns:atom="http://www.w3.org/2005/Atom"
            xmlns:OS-FLV-EXT-DATA="{extra_data}"
            xmlns:OS-FLV-WITH-EXT-SPECS="{extra_specs}"
            xmlns="http://docs.openstack.org/compute/api/v1.1"
            disk="20" vcpus="1" ram="512" name="512MB Standard Instance"
            id="2" swap="512" rxtx_factor="2.0"
            OS-FLV-EXT-DATA:ephemeral="250">
            <OS-FLV-WITH-EXT-SPECS:extra_specs>
            <field1>1</field1>
            </OS-FLV-WITH-EXT-SPECS:extra_specs>
            <atom:link href="https://127.0.0.1/v2/660/flavors/2" rel="self"/>
            <atom:link href="https://127.0.0.1/660/flavors/2" rel="bookmark"/>
            </flavor>
             format extra_specs N/A Constants XML_FLAVOR_EXTRA_SPECS extra_data N/A Constants XML_FLAVOR_EXTRA_DATA N/A N/A cls flavor N/A N/A Flavor deserialize N/A cls flavor_xml xml N/A classmethod N/A FlavorJSONModelTest N/A N/A unittest TestCase FlavorModelTest N/A setUpClass N/A N/A cls N/A N/A N/A N/A cls flavor_json 
            {
              "flavor" : {
                "name" : "512MB Standard Instance",
                "links" : [
                  {
                    "href" : "https://127.0.0.1/v2/660/flavors/2",
                    "rel" : "self"
                  },
                  {
                    "href" : "https://127.0.0.1/660/flavors/2",
                    "rel" : "bookmark"
                  }
                ],
                "ram" : 512,
                "vcpus" : 1,
                "swap" : 512,
                "rxtx_factor" : 2.0,
                "disk" : 20,
                "id" : "2",
                "OS-FLV-EXT-DATA:ephemeral" : 250,
                "OS-FLV-WITH-EXT-SPECS:extra_specs": {"field1": "1"}
              }
            }
             N/A N/A cls flavor N/A N/A Flavor deserialize N/A cls flavor_json json N/A classmethod N/A