'Enter the \'test\' mode, where one cursor serves several requests.'

def enter_test_mode(self):

    assert (self.test_cr is None)
    self.test_cr = self._db.test_cursor()
    assert (Registry._saved_lock is None)
    Registry._saved_lock = Registry._lock
    Registry._lock = DummyRLock()
