Replace assertIsNone(X) with assertEqual(None, X).