Every line of 'python assert not none' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
47 def assert_is_none(a, msg=None): 48 msg = msg or '{0!r} is not None'.format(a) 49 old_assert_true(a is None, msg)
25 def assert_is_none(x): 26 if x is not None: 27 raise AssertionError("'{}' is not none".format(x))