MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_is_none

Method test_is_none

Lib/test/test_operator.py:350–358  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

348 self.assertTrue(operator.is_not(a,c))
349
350 def test_is_none(self):
351 operator = self.module
352 a = 'xyzpdq'
353 b = ''
354 c = None
355 self.assertRaises(TypeError, operator.is_none)
356 self.assertFalse(operator.is_none(a))
357 self.assertFalse(operator.is_none(b))
358 self.assertTrue(operator.is_none(c))
359
360 def test_is_not_none(self):
361 operator = self.module

Callers

nothing calls this directly

Calls 4

assertFalseMethod · 0.80
assertTrueMethod · 0.80
assertRaisesMethod · 0.45
is_noneMethod · 0.45

Tested by

no test coverage detected