def METHOD_NAME(self, endian):
    """Test that arrays are deserialized as big-endian, and that
    the deserialization breaks if the input is little-endian."""
    dt_input = np.dtype(float).newbyteorder(endian)
    arr = np.arange(3, dtype=dt_input)
    deserialized = deserialize_numpy(arr.tobytes(), arr.shape)
    assert np.allclose(arr, deserialized) == (endian == ">")