Python UnitTest assertIsNan()