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

Method test_lt

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

Source from the content-addressed store, hash-verified

61 self.assertSetEqual(computed_all, actual_all)
62
63 def test_lt(self):
64 operator = self.module
65 self.assertRaises(TypeError, operator.lt)
66 self.assertRaises(TypeError, operator.lt, 1j, 2j)
67 self.assertFalse(operator.lt(1, 0))
68 self.assertFalse(operator.lt(1, 0.0))
69 self.assertFalse(operator.lt(1, 1))
70 self.assertFalse(operator.lt(1, 1.0))
71 self.assertTrue(operator.lt(1, 2))
72 self.assertTrue(operator.lt(1, 2.0))
73
74 def test_le(self):
75 operator = self.module

Callers

nothing calls this directly

Calls 4

assertFalseMethod · 0.80
ltMethod · 0.80
assertTrueMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected