MCPcopy
hub / github.com/GoSecure/pyrdp / test_write_setsWritten

Method test_write_setsWritten

test/test_FileMapping.py:40–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 self.assertEqual(tmpDir, self.outDir / "tmp")
39
40 def test_write_setsWritten(self):
41 mapping, *_ = self.createMapping()
42 self.assertFalse(mapping.written)
43 mapping.write(b"data")
44 self.assertTrue(mapping.written)
45
46 def test_finalize_removesUnwrittenFiles(self):
47 mapping, *_ = self.createMapping()

Callers

nothing calls this directly

Calls 2

createMappingMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected