(self)
| 1636 | self.assertEqual(type(value >> shift), int) |
| 1637 | |
| 1638 | def test_as_integer_ratio(self): |
| 1639 | class myint(int): |
| 1640 | pass |
| 1641 | tests = [10, 0, -10, 1, sys.maxsize + 1, True, False, myint(42)] |
| 1642 | for value in tests: |
| 1643 | numerator, denominator = value.as_integer_ratio() |
| 1644 | self.assertEqual((numerator, denominator), (int(value), 1)) |
| 1645 | self.assertEqual(type(numerator), int) |
| 1646 | self.assertEqual(type(denominator), int) |
| 1647 | |
| 1648 | def test_square(self): |
| 1649 | # Multiplication makes a special case of multiplying an int with |
nothing calls this directly
no test coverage detected