(self, expected, received)
| 1767 | Engine._has_events = False |
| 1768 | |
| 1769 | def _assert_stmts(self, expected, received): |
| 1770 | list(received) |
| 1771 | |
| 1772 | for stmt, params, posn in expected: |
| 1773 | if not received: |
| 1774 | assert False, "Nothing available for stmt: %s" % stmt |
| 1775 | while received: |
| 1776 | teststmt, testparams, testmultiparams = received.pop(0) |
| 1777 | teststmt = ( |
| 1778 | re.compile(r"[\n\t ]+", re.M).sub(" ", teststmt).strip() |
| 1779 | ) |
| 1780 | if teststmt.startswith(stmt) and ( |
| 1781 | testparams == params or testparams == posn |
| 1782 | ): |
| 1783 | break |
| 1784 | |
| 1785 | def test_engine_connect(self, testing_engine): |
| 1786 | e1 = testing_engine(config.db_url) |
no test coverage detected