def METHOD_NAME(self):
    data = 3 * b"pretend giant block of data\n"
    offsets = range(0, len(data), 8)
    with LoopbackFile("rb+") as f:
        view = memoryview(data)
        for offset in offsets:
            f.write(view[offset : offset + 8])
        self.assertEqual(f.read(), data)