Use assert_array_equal and assert_allclose.