doctest.DocTestCase.assertIsNone

DocTestCase.assertIsNone(obj, msg=None)

Same as self.assertTrue(obj is None), with a nicer default message.