Replace assertIsNotNone to make unittests work in 2.6