def test_serialize_json(self): array = np.arange(10, dtype=np.uint).reshape(2, 5) assert (utils.serialize_json(array) == json.dumps(array.tolist()))