def test_check_raises(self): checkres = checks.check_raises( "text = :raises: Exception if conditions", "fakefile") self.assertIsNotNone(checkres) checkres = checks.check_raises( "text = :raises Exception: if conditions", "fakefile") self.assertIsNone(checkres)