diff options
| author | 2024-06-22 21:19:42 -0400 | |
|---|---|---|
| committer | 2024-06-22 21:19:42 -0400 | |
| commit | 408cf4d7719de63b8175bd9b69a7484bc6dba1f8 (patch) | |
| tree | eb6ec27c12186e38a97673ec9a1332853aa44175 /test/test_util.py | |
| parent | 265fafbf1b3d468d4087a5229ca4bad0a651db23 (diff) | |
| parent | 80e39a8fc7de105510cbbdca8507f2a4b8c9e01d (diff) | |
Update upstream source from tag 'upstream/1.27.1'
Update to upstream version '1.27.1'
with Debian dir 786b4d48b451c0be3e4e14b3739202bb3965566e
Diffstat (limited to 'test/test_util.py')
| -rw-r--r-- | test/test_util.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_util.py b/test/test_util.py index 83b44b7..35e7247 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -745,6 +745,7 @@ def hash(value): self.assertEqual(repr(obj), repr(None)) self.assertEqual(format(obj), str(None)) self.assertEqual(format(obj, "%F"), str(None)) + self.assertIs(obj.attr, obj) self.assertIs(obj["key"], obj) self.assertIs(obj(), obj) @@ -752,6 +753,17 @@ def hash(value): self.assertIs(obj(foo="bar"), obj) self.assertEqual(util.json_dumps(obj), "null") + self.assertLess(obj, "foo") + self.assertLessEqual(obj, None) + self.assertFalse(obj == obj) + self.assertTrue(obj != obj) + self.assertGreater(123, obj) + self.assertGreaterEqual(1.23, obj) + + mapping = {} + mapping[obj] = 123 + self.assertIn(obj, mapping) + i = 0 for _ in obj: i += 1 |
