def METHOD_NAME(self):
    with self.assertRaises(TypeError):
        PickleBuffer()
    with self.assertRaises(TypeError):
        PickleBuffer("foo")
    # Released memoryview fails taking a buffer
    m = memoryview(b"foo")
    m.release()
    with self.assertRaises(ValueError):
        PickleBuffer(m)