def it_can_write_a_content_types_stream(self, write_cti_fixture): _ContentTypesItem_, parts_, phys_pkg_writer_, blob_ = ( write_cti_fixture) PackageWriter._write_content_types_stream(phys_pkg_writer_, parts_) _ContentTypesItem_.from_parts.assert_called_once_with(parts_) phys_pkg_writer_.write.assert_called_once_with('/[Content_Types].xml', blob_)
def it_can_write_a_content_types_stream(self, write_cti_fixture): _ContentTypesItem_, parts_, phys_pkg_writer_, blob_ = ( write_cti_fixture ) PackageWriter._write_content_types_stream(phys_pkg_writer_, parts_) _ContentTypesItem_.from_parts.assert_called_once_with(parts_) phys_pkg_writer_.write.assert_called_once_with( '/[Content_Types].xml', blob_ )