def METHOD_NAME(self):
    # 1-D, contiguous
    ndarray = import_helper.import_module("_testbuffer").ndarray
    arr = ndarray(list(range(3)), shape=(3,), format='<h')
    equiv = b"\x00\x00\x01\x00\x02\x00"
    self.check_raw(arr, equiv)
    # 2-D, C-contiguous
    arr = ndarray(list(range(6)), shape=(2, 3), format='<h')
    equiv = b"\x00\x00\x01\x00\x02\x00\x03\x00\x04\x00\x05\x00"
    self.check_raw(arr, equiv)
    # 2-D, F-contiguous
    arr = ndarray(list(range(6)), shape=(2, 3), strides=(2, 4),
                  format='<h')
    # Note this is different from arr.tobytes()
    equiv = b"\x00\x00\x01\x00\x02\x00\x03\x00\x04\x00\x05\x00"
    self.check_raw(arr, equiv)
    # 0-D
    arr = ndarray(456, shape=(), format='<i')
    equiv = b'\xc8\x01\x00\x00'
    self.check_raw(arr, equiv)