Add python test snippets for assertIsNone and assertIsNotNone