(self, x, y)
| 37 | |
| 38 | class HashTest(unittest.TestCase): |
| 39 | def check_equal_hash(self, x, y): |
| 40 | # check both that x and y are equal and that their hashes are equal |
| 41 | self.assertEqual(hash(x), hash(y), |
| 42 | "got different hashes for {!r} and {!r}".format(x, y)) |
| 43 | self.assertEqual(x, y) |
| 44 | |
| 45 | def test_bools(self): |
| 46 | self.check_equal_hash(False, 0) |
no test coverage detected