'Cursors can be used as a context manager'

def test_cursor_contextmanager(self):

    with connection.cursor() as cursor:
        self.assertIsInstance(cursor, CursorWrapper)
    with self.assertRaises(connection.features.closed_cursor_error_class):
        cursor.execute(('SELECT    1' + connection.features.bare_select_suffix))
