(self, cond, message, calculated_output, stored_output, key=None)
| 706 | exit_script(1) |
| 707 | |
| 708 | def assert_static_error(self, cond, message, calculated_output, stored_output, key=None): |
| 709 | # ----------------------------------------------------------------------------- |
| 710 | # --- Init of static tests functions------------------------------------------ |
| 711 | # ----------------------------------------------------------------------------- |
| 712 | calculated_string = json_stringify(calculated_output) |
| 713 | stored_string = json_stringify(stored_output) |
| 714 | error_message = message |
| 715 | if key is not None: |
| 716 | error_message = '[' + key + ']' |
| 717 | error_message += ' computed: ' + stored_string + ' stored: ' + calculated_string |
| 718 | assert cond, error_message |
| 719 | |
| 720 | def load_markets_from_file(self, id): |
| 721 | # load markets from file |
no test coverage detected