()
| 72 | |
| 73 | |
| 74 | def test_cmp() -> None: |
| 75 | oid1 = Oid(raw=RAW) |
| 76 | |
| 77 | # Equal |
| 78 | oid2 = Oid(hex=HEX) |
| 79 | assert oid1 == oid2 |
| 80 | |
| 81 | # Not equal |
| 82 | oid2 = Oid(hex='15b648aec6ed045b5ca6f57f8b7831a8b4757299') |
| 83 | assert oid1 != oid2 |
| 84 | |
| 85 | # Other |
| 86 | assert oid1 < oid2 |
| 87 | assert oid1 <= oid2 |
| 88 | assert not oid1 == oid2 |
| 89 | assert not oid1 > oid2 |
| 90 | assert not oid1 >= oid2 |
| 91 | |
| 92 | |
| 93 | def test_hash() -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…