'Test the documented API of connection.queries.'

@override_settings(DEBUG=True)
def test_queries(self):

    with connection.cursor() as cursor:
        reset_queries()
        cursor.execute(('SELECT    1' + connection.features.bare_select_suffix))
    self.assertEqual(1, len(connection.queries))
    self.assertIsInstance(connection.queries, list)
    self.assertIsInstance(connection.queries[0], dict)
    self.assertCountEqual(connection.queries[0], ['sql', 'time'])
    reset_queries()
    self.assertEqual(0, len(connection.queries))
