Module Expr Str ImportFrom alias alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Assert CompareEq Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Assign NameStore Num For NameStore NameLoad body Assert Call NameLoad NameLoad NameLoad AugAssignAdd NameStore Num Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad For NameStore Call NameLoad UnaryOpUSub NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assert Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpSub Num NameLoad Expr SubscriptLoad NameLoad Index NameLoad With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Expr SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assert CompareIs NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Num Return TupleLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assert Call NameLoad NameLoad NameLoad Assert CompareEq NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore TupleLoad Str Num Num Assign NameStore Call NameLoad Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore TupleLoad Str Num Num Str Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Return TupleLoad Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr keyword ListLoad Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad Call AttributeLoad Call AttributeLoad Call NameLoad attr Str Str attr Call AttributeLoad Call AttributeLoad Call NameLoad attr attr Call AttributeLoad Call AttributeLoad Call NameLoad attr NameLoad attr Call AttributeLoad Call AttributeLoad Call NameLoad attr attr Call AttributeLoad Call NameLoad attr NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad Call AttributeLoad Call NameLoad attr Str attr Call AttributeLoad Call AttributeLoad Call NameLoad attr attr Call AttributeLoad Call NameLoad attr NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A 
Test suite for the docx.shape module
 __future__ absolute_import print_function unicode_literals N/A pytest docx.enum.shape WD_INLINE_SHAPE docx.oxml.ns nsmap docx.shape InlineShape InlineShapes docx.shared Length oxml.unitdata.dml a_blip a_blipFill a_graphic a_graphicData a_pic an_inline unitutil.cxml element xml unitutil.mock loose_mock DescribeInlineShapes N/A object N/A it_knows_how_many_inline_shapes_it_contains N/A N/A self inline_shapes_fixture N/A N/A N/A N/A inline_shapes expected_count inline_shapes_fixture N/A N/A N/A len inline_shapes expected_count N/A it_can_iterate_over_its_InlineShape_instances N/A N/A self inline_shapes_fixture N/A N/A N/A N/A inline_shapes inline_shape_count inline_shapes_fixture N/A actual_count 0 N/A inline_shape inline_shapes N/A N/A N/A isinstance inline_shape InlineShape N/A actual_count 1 N/A N/A actual_count inline_shape_count N/A it_provides_indexed_access_to_inline_shapes N/A N/A self inline_shapes_fixture N/A N/A N/A N/A inline_shapes inline_shape_count inline_shapes_fixture N/A idx N/A range N/A inline_shape_count inline_shape_count N/A N/A inline_shape N/A inline_shapes N/A idx N/A N/A isinstance inline_shape InlineShape N/A it_raises_on_indexed_access_out_of_range N/A N/A self inline_shapes_fixture N/A N/A N/A N/A inline_shapes inline_shape_count inline_shapes_fixture N/A N/A N/A pytest raises IndexError N/A N/A too_low N/A -1 inline_shape_count N/A N/A inline_shapes N/A too_low N/A N/A N/A pytest raises IndexError N/A N/A too_high inline_shape_count N/A N/A inline_shapes N/A too_high N/A it_knows_the_part_it_belongs_to N/A N/A self inline_shapes_with_parent_ N/A N/A N/A N/A inline_shapes parent_ inline_shapes_with_parent_ N/A part N/A inline_shapes part N/A N/A part N/A parent_ part N/A inline_shapes_fixture N/A N/A self N/A N/A N/A body N/A element w:body/w:p/(w:r/w:drawing/wp:inline, w:r/w:drawing/wp:inline) N/A inline_shapes N/A InlineShapes body None N/A expected_count 2 N/A N/A inline_shapes expected_count N/A N/A pytest fixture inline_shapes_with_parent_ N/A N/A self request N/A N/A N/A parent_ N/A loose_mock request name parent_ N/A inline_shapes N/A InlineShapes None parent_ N/A N/A inline_shapes parent_ N/A N/A pytest fixture N/A DescribeInlineShape N/A object N/A it_knows_what_type_of_shape_it_is N/A N/A self shape_type_fixture N/A N/A N/A N/A inline_shape inline_shape_type shape_type_fixture N/A N/A N/A inline_shape type inline_shape_type N/A it_knows_its_display_dimensions N/A N/A self dimensions_get_fixture N/A N/A N/A N/A inline_shape cx cy dimensions_get_fixture N/A width N/A inline_shape width N/A height N/A inline_shape height N/A N/A isinstance width Length N/A N/A width cx N/A N/A isinstance height Length N/A N/A height cy N/A it_can_change_its_display_dimensions N/A N/A self dimensions_set_fixture N/A N/A N/A N/A inline_shape cx cy expected_xml dimensions_set_fixture N/A N/A inline_shape width cx N/A N/A inline_shape height cy N/A N/A N/A N/A inline_shape _inline xml expected_xml N/A dimensions_get_fixture N/A N/A self N/A N/A N/A N/A inline_cxml expected_cx expected_cy N/A wp:inline/wp:extent{cx=333, cy=666} 333 666 N/A inline_shape N/A InlineShape N/A element inline_cxml N/A N/A inline_shape expected_cx expected_cy N/A N/A pytest fixture dimensions_set_fixture N/A N/A self N/A N/A N/A N/A inline_cxml new_cx new_cy expected_cxml N/A wp:inline/(wp:extent{cx=333,cy=666},a:graphic/a:graphicData/pic:pic/pic:spPr/a:xfrm/a:ext{cx=333,cy=666}) 444 888 wp:inline/(wp:extent{cx=444,cy=888},a:graphic/a:graphicData/pic:pic/pic:spPr/a:xfrm/a:ext{cx=444,cy=888}) N/A inline_shape N/A InlineShape N/A element inline_cxml N/A expected_xml N/A xml expected_cxml N/A N/A inline_shape new_cx new_cy expected_xml N/A N/A pytest fixture shape_type_fixture N/A N/A self request N/A N/A N/A N/A N/A request param embed pic N/A N/A inline N/A N/A self _inline_with_picture embed True N/A shape_type N/A WD_INLINE_SHAPE PICTURE N/A N/A N/A N/A request param link pic N/A N/A inline N/A N/A self _inline_with_picture link True N/A shape_type N/A WD_INLINE_SHAPE LINKED_PICTURE N/A N/A N/A N/A request param link+embed pic N/A N/A inline N/A N/A self _inline_with_picture embed True link True N/A shape_type N/A WD_INLINE_SHAPE LINKED_PICTURE N/A N/A N/A N/A request param chart N/A N/A inline N/A N/A self _inline_with_uri N/A nsmap N/A c N/A shape_type N/A WD_INLINE_SHAPE CHART N/A N/A N/A N/A request param smart art N/A N/A inline N/A N/A self _inline_with_uri N/A nsmap N/A dgm N/A shape_type N/A WD_INLINE_SHAPE SMART_ART N/A N/A N/A N/A request param not implemented N/A N/A inline N/A N/A self _inline_with_uri foobar N/A shape_type N/A WD_INLINE_SHAPE NOT_IMPLEMENTED N/A N/A N/A InlineShape inline shape_type N/A N/A N/A pytest fixture params N/A embed pic link pic link+embed pic chart smart art not implemented _inline_with_picture N/A N/A self embed link N/A False False N/A N/A picture_ns N/A nsmap N/A pic N/A blip_bldr N/A a_blip N/A embed N/A N/A N/A N/A blip_bldr with_embed rId1 N/A link N/A N/A N/A N/A blip_bldr with_link rId2 N/A inline N/A N/A N/A N/A N/A N/A an_inline with_nsdecls wp r with_child N/A N/A N/A N/A N/A a_graphic with_nsdecls with_child N/A N/A N/A N/A N/A a_graphicData with_uri picture_ns with_child N/A N/A N/A N/A N/A a_pic with_nsdecls with_child N/A N/A N/A a_blipFill with_child blip_bldr element N/A inline N/A _inline_with_uri N/A N/A self uri N/A N/A N/A inline N/A N/A N/A N/A N/A N/A an_inline with_nsdecls wp with_child N/A N/A N/A N/A N/A a_graphic with_nsdecls with_child N/A N/A N/A a_graphicData with_uri uri element N/A inline N/A N/A