class TestAsserts(unittest.TestCase):

    def testAssert(self):
        tests = [[1, 2], {'foo': 2}, [2, 'foo', {'d': 4}],
            SaneEqualityArray([1, 2]), {'foo': {'hey': SaneEqualityArray([2,
            3])}}, [{'foo': SaneEqualityArray([3, 4]), 'd': {'doo': 3}},
            SaneEqualityArray([5, 6]), 34]]
for t in tests:
    self.assertEqual(t, copy.deepcopy(t))
if __name__ == '__main__':
    unittest.main()
Compare (assert equality of) two complex data structures containing numpy arrays in unittest