@jp111 You might wanna look into `numpy.testing`. They have some methods for testing numpy structures.