I want to make some unit-tests for my app, and I need to compare two arrays. Since array.__eq__ returns a new array (so TestCase.assertEqual fails)
array.__eq__
TestCase.assertEqual
In my tests I use this:
numpy.testing.assert_array_equal(arr1, arr2)