MCPcopy Index your code
hub / github.com/python/cpython / test_is

Method test_is

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

Source from the content-addressed store, hash-verified

332 self.assertEqual(operator.xor(0xb, 0xc), 0x7)
333
334 def test_is(self):
335 operator = self.module
336 a = b = 'xyzpdq'
337 c = a[:3] + b[3:]
338 self.assertRaises(TypeError, operator.is_)
339 self.assertTrue(operator.is_(a, b))
340 self.assertFalse(operator.is_(a,c))
341
342 def test_is_not(self):
343 operator = self.module

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
is_Method · 0.80
assertFalseMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected