(what)
| 70 | |
| 71 | @report |
| 72 | def _testUniqueIdInterface(what): |
| 73 | |
| 74 | assert what.hasInvalidUniqueId() |
| 75 | assert not what.hasValidUniqueId() |
| 76 | assert what.ensureUniqueId() |
| 77 | assert isinstance(what.getUniqueId(), (int, long)) |
| 78 | assert what.getUniqueId() > 0 |
| 79 | assert not what.hasInvalidUniqueId() |
| 80 | assert what.hasValidUniqueId() |
| 81 | |
| 82 | what.clearUniqueId() |
| 83 | assert what.getUniqueId() == 0 |
| 84 | assert what.hasInvalidUniqueId() |
| 85 | assert not what.hasValidUniqueId() |
| 86 | |
| 87 | assert what.ensureUniqueId() |
| 88 | assert isinstance(what.getUniqueId(), (int, long)) |
| 89 | assert what.getUniqueId() > 0 |
| 90 | assert not what.hasInvalidUniqueId() |
| 91 | assert what.hasValidUniqueId() |
| 92 | |
| 93 | what.setUniqueId(1234) |
| 94 | assert what.getUniqueId() == 1234 |
| 95 | |
| 96 | |
| 97 | def _testProgressLogger(ff): |
no test coverage detected