(exchange, skipped_properties, method, entry, key, compare_to, allow_null=True)
| 232 | |
| 233 | |
| 234 | def assert_less(exchange, skipped_properties, method, entry, key, compare_to, allow_null=True): |
| 235 | if key in skipped_properties: |
| 236 | return |
| 237 | log_text = log_template(exchange, method, entry) |
| 238 | value = exchange.safe_string(entry, key) |
| 239 | assert value is not None or allow_null, 'value is null' + log_text |
| 240 | if value is not None and compare_to is not None: |
| 241 | assert Precise.string_lt(value, compare_to), string_value(key) + ' key (with a value of ' + string_value(value) + ') was expected to be < ' + string_value(compare_to) + log_text |
| 242 | |
| 243 | |
| 244 | def assert_less_or_equal(exchange, skipped_properties, method, entry, key, compare_to, allow_null=True): |
nothing calls this directly
no test coverage detected
searching dependent graphs…