Module Expr Str ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias identifier Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias ImportFrom alias alias ImportFrom alias alias alias Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assert CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assert CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert CompareEq NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad Str attr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad Str decorator_list AttributeLoad NameLoad attr
N/A N/A 
Test suite for pptx.opc.packaging module
 __future__ absolute_import N/A N/A io BytesIO N/A N/A N/A ImportError N/A StringIO StringIO BytesIO N/A hashlib N/A pytest zipfile ZIP_DEFLATED ZipFile pptx.exceptions PackageNotFoundError pptx.opc.packuri PACKAGE_URI PackURI pptx.opc.phys_pkg _DirPkgReader PhysPkgReader PhysPkgWriter _ZipPkgReader _ZipPkgWriter unitutil.file absjoin test_file_dir unitutil.mock class_mock loose_mock Mock N/A test_pptx_path N/A absjoin test_file_dir test.pptx N/A dir_pkg_path N/A absjoin test_file_dir expanded_pptx N/A zip_pkg_path test_pptx_path DescribeDirPkgReader N/A object N/A it_is_used_by_PhysPkgReader_when_pkg_is_a_dir N/A N/A self N/A N/A N/A phys_reader N/A PhysPkgReader dir_pkg_path N/A N/A isinstance phys_reader _DirPkgReader N/A it_doesnt_mind_being_closed_even_though_it_doesnt_need_it N/A N/A self dir_reader N/A N/A N/A N/A N/A dir_reader close N/A it_can_retrieve_the_blob_for_a_pack_uri N/A N/A self dir_reader N/A N/A N/A pack_uri N/A PackURI /ppt/presentation.xml N/A blob N/A N/A dir_reader blob_for pack_uri N/A sha1 N/A N/A N/A N/A hashlib sha1 blob hexdigest N/A N/A sha1 51b78f4dabc0af2419d4e044ab73028c4bef53aa N/A it_can_get_the_content_types_xml N/A N/A self dir_reader N/A N/A N/A sha1 N/A N/A N/A N/A hashlib sha1 N/A dir_reader content_types_xml hexdigest N/A N/A sha1 a68cf138be3c4eb81e47e2550166f9949423c7df N/A it_can_retrieve_the_rels_xml_for_a_source_uri N/A N/A self dir_reader N/A N/A N/A rels_xml N/A N/A dir_reader rels_xml_for PACKAGE_URI N/A sha1 N/A N/A N/A N/A hashlib sha1 rels_xml hexdigest N/A N/A sha1 64ffe86bb2bbaad53c3c1976042b907f8e10c5a3 N/A it_returns_none_when_part_has_no_rels_xml N/A N/A self dir_reader N/A N/A N/A partname N/A PackURI /ppt/viewProps.xml N/A rels_xml N/A N/A dir_reader rels_xml_for partname N/A N/A rels_xml None N/A pkg_file_ N/A N/A self request N/A N/A N/A N/A loose_mock request N/A N/A pytest fixture dir_reader N/A N/A self N/A N/A N/A N/A _DirPkgReader dir_pkg_path N/A N/A N/A pytest fixture scope class N/A DescribePhysPkgReader N/A object N/A it_raises_when_pkg_path_is_not_a_package N/A N/A self N/A N/A N/A N/A N/A pytest raises PackageNotFoundError N/A N/A N/A PhysPkgReader foobar N/A N/A DescribeZipPkgReader N/A object N/A it_is_used_by_PhysPkgReader_when_pkg_is_a_zip N/A N/A self N/A N/A N/A phys_reader N/A PhysPkgReader zip_pkg_path N/A N/A isinstance phys_reader _ZipPkgReader N/A it_is_used_by_PhysPkgReader_when_pkg_is_a_stream N/A N/A self N/A N/A N/A N/A open zip_pkg_path rb stream N/A N/A phys_reader N/A PhysPkgReader stream N/A N/A isinstance phys_reader _ZipPkgReader N/A it_opens_pkg_file_zip_on_construction N/A N/A self ZipFile_ pkg_file_ N/A N/A N/A N/A _ZipPkgReader pkg_file_ N/A N/A N/A ZipFile_ assert_called_once_with pkg_file_ r N/A it_can_be_closed N/A N/A self ZipFile_ N/A N/A N/A zipf N/A ZipFile_ return_value N/A zip_pkg_reader N/A _ZipPkgReader None N/A N/A N/A zip_pkg_reader close N/A N/A N/A N/A zipf close assert_called_once_with N/A it_can_retrieve_the_blob_for_a_pack_uri N/A N/A self phys_reader N/A N/A N/A pack_uri N/A PackURI /ppt/presentation.xml N/A blob N/A N/A phys_reader blob_for pack_uri N/A sha1 N/A N/A N/A N/A hashlib sha1 blob hexdigest N/A N/A sha1 efa7bee0ac72464903a67a6744c1169035d52a54 N/A it_has_the_content_types_xml N/A N/A self phys_reader N/A N/A N/A sha1 N/A N/A N/A N/A hashlib sha1 N/A phys_reader content_types_xml hexdigest N/A N/A sha1 ab762ac84414fce18893e18c3f53700c01db56c3 N/A it_can_retrieve_rels_xml_for_source_uri N/A N/A self phys_reader N/A N/A N/A rels_xml N/A N/A phys_reader rels_xml_for PACKAGE_URI N/A sha1 N/A N/A N/A N/A hashlib sha1 rels_xml hexdigest N/A N/A sha1 e31451d4bbe7d24adbe21454b8e9fdae92f50de5 N/A it_returns_none_when_part_has_no_rels_xml N/A N/A self phys_reader N/A N/A N/A partname N/A PackURI /ppt/viewProps.xml N/A rels_xml N/A N/A phys_reader rels_xml_for partname N/A N/A rels_xml None N/A phys_reader N/A N/A self request N/A N/A N/A phys_reader N/A _ZipPkgReader zip_pkg_path N/A N/A N/A request addfinalizer N/A phys_reader close N/A phys_reader N/A N/A N/A pytest fixture scope class pkg_file_ N/A N/A self request N/A N/A N/A N/A loose_mock request N/A N/A pytest fixture N/A DescribeZipPkgWriter N/A object N/A it_is_used_by_PhysPkgWriter_unconditionally N/A N/A self tmp_pptx_path N/A N/A N/A phys_writer N/A PhysPkgWriter tmp_pptx_path N/A N/A isinstance phys_writer _ZipPkgWriter N/A it_opens_pkg_file_zip_on_construction N/A N/A self ZipFile_ N/A N/A N/A pkg_file N/A Mock name pkg_file N/A N/A _ZipPkgWriter pkg_file N/A N/A N/A ZipFile_ assert_called_once_with pkg_file w compression ZIP_DEFLATED N/A it_can_be_closed N/A N/A self ZipFile_ N/A N/A N/A zipf N/A ZipFile_ return_value N/A zip_pkg_writer N/A _ZipPkgWriter None N/A N/A N/A zip_pkg_writer close N/A N/A N/A N/A zipf close assert_called_once_with N/A it_can_write_a_blob N/A N/A self pkg_file N/A N/A N/A pack_uri N/A PackURI /part/name.xml N/A blob N/A N/A <BlobbityFooBlob/> encode utf-8 N/A pkg_writer N/A PhysPkgWriter pkg_file N/A N/A N/A pkg_writer write pack_uri blob N/A N/A N/A pkg_writer close N/A written_blob_sha1 N/A N/A N/A N/A hashlib sha1 blob hexdigest N/A zipf N/A ZipFile pkg_file r N/A retrieved_blob N/A N/A zipf read N/A pack_uri membername N/A N/A N/A zipf close N/A retrieved_blob_sha1 N/A N/A N/A N/A hashlib sha1 retrieved_blob hexdigest N/A N/A retrieved_blob_sha1 written_blob_sha1 N/A pkg_file N/A N/A self request N/A N/A N/A pkg_file N/A BytesIO N/A N/A N/A request addfinalizer N/A pkg_file close N/A pkg_file N/A N/A pytest fixture N/A tmp_pptx_path N/A N/A tmpdir N/A N/A N/A N/A str N/A N/A tmpdir join test_python-pptx.pptx N/A N/A pytest fixture ZipFile_ N/A N/A request N/A N/A N/A N/A class_mock request pptx.opc.phys_pkg.ZipFile N/A N/A pytest fixture