Exemplo n.º 1
0
 def test_load_spotcheck(self):
     """_ContentTypesItem can load itself from a filesystem instance"""
     # setup ------------------------
     dir_fs = FileSystem(dir_pkg_path)
     zip_fs = FileSystem(zip_pkg_path)
     for fs in (dir_fs, zip_fs):
         # exercise ---------------------
         cti = _ContentTypesItem().load(fs)
         # test -------------------------
         expected = "application/vnd.openxmlformats-officedocument" ".presentationml.slideLayout+xml"
         actual = cti["/ppt/slideLayouts/slideLayout1.xml"]
         msg = "expected content type '%s', got '%s'" % (expected, actual)
         self.assertEqual(expected, actual, msg)
Exemplo n.º 2
0
 def setUp(self):
     self.cti = _ContentTypesItem()