Exemplo n.º 1
0
 def test07_write_object_declaration(self):
     """Test write_object_declaration."""
     tempdir = tempfile.mkdtemp(prefix='test_write_object_declaration')
     oo = Object()
     oo.write_object_declaration(tempdir)
     self.assertEqual(os.listdir(tempdir), ['0=ocfl_object_1.0'])
Exemplo n.º 2
0
 def test07_write_object_declaration(self):
     """Test write_object_declaration."""
     tmpfs = fs.tempfs.TempFS(identifier='test_write_object_declaration')
     oo = Object(obj_fs=tmpfs)
     oo.write_object_declaration()
     self.assertEqual(tmpfs.listdir('/'), ['0=ocfl_object_1.0'])