def METHOD_NAME(self):
    for s in [b'', b' ', b'abc ', b'abcdef']:
        x = marshal.dumps(memoryview(s))
        self.assertEqual(marshal.loads(x), s)
    for s in [b'', b' ', b'abc ', b'abcdef']:
        with open(self.tfn, 'wb') as f:
            marshal.dump(memoryview(s), f)
        with open(self.tfn, 'rb') as f:
            x2 = marshal.load(f)
        self.assertEqual(s, x2)