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

Method test___ne__

Lib/test/test_builtin.py:731–734  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

729 self.assertEqual(sorted([].__dir__()), dir([]))
730
731 def test___ne__(self):
732 self.assertFalse(None.__ne__(None))
733 self.assertIs(None.__ne__(0), NotImplemented)
734 self.assertIs(None.__ne__("abc"), NotImplemented)
735
736 def test_divmod(self):
737 self.assertEqual(divmod(12, 7), (1, 5))

Callers

nothing calls this directly

Calls 3

assertFalseMethod · 0.80
__ne__Method · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected