MCPcopy Create free account
hub / github.com/GStreamer/gst-python / test_map_unmap_context

Method test_map_unmap_context

testsuite/test_gst.py:107–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105 info.data[0]
106
107 def test_map_unmap_context(self):
108 Gst.init(None)
109 buf = Gst.Buffer.new_wrapped([42])
110 with buf.map(Gst.MapFlags.READ | Gst.MapFlags.WRITE) as info:
111 self.assertEqual(info.data[0], 42)
112 with self.assertRaises(ValueError):
113 info.data[0]
114
115if __name__ == "__main__":
116 unittest.main()

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected