Fixed multiline conditional in cursor_mock.py