'Objects should be reusable after write()'

def test_reuse_input(self):

    original = 'original'
    tests = [bytearray(original)]
    try:
        m = memoryview(bytearray(original))
    except NameError:
        pass
    else:
        if (bytes(m) == original):
            tests.append(m)
    for data in tests:
        self.buffer.write(data)
        data[:] = 'reused!!'
        self.assertEqual(self.buffer.read(), original)
