def test_virtual_memory_array_data(fixture): value = VirtualMemoryArray.frombytes(fixture) data = value.get_data() width, height = value.rectangle[3], value.rectangle[2] value.set_data((width, height), data, value.pixel_depth, value.compression) assert value.tobytes() == fixture
def test_virtual_memory_array_wr(args): check_write_read(VirtualMemoryArray(*args))