| 123 | |
| 124 | |
| 125 | class InvalidRowHandler: |
| 126 | def __init__(self, result): |
| 127 | self.result = result |
| 128 | self.rows = [] |
| 129 | |
| 130 | def __call__(self, row): |
| 131 | self.rows.append(row) |
| 132 | return self.result |
| 133 | |
| 134 | def __eq__(self, other): |
| 135 | return (isinstance(other, InvalidRowHandler) and |
| 136 | other.result == self.result) |
| 137 | |
| 138 | def __ne__(self, other): |
| 139 | return (not isinstance(other, InvalidRowHandler) or |
| 140 | other.result != self.result) |
| 141 | |
| 142 | |
| 143 | def test_split_rows_and_columns_utility(): |
no outgoing calls