def _verifySchema(self, query, resource):
        from gcloud.bigquery.table import SchemaField
        if resource in 'schema':
            fields = resource['schema']['fields']
            self.assertEqual(len(query.schema), len(fields))
            for found, expected in zip(query.schema, fields):
                self.assertTrue(isinstance(found, SchemaField))
                self.assertEqual(found.name, expected['name'])
                self.assertEqual(found.field_type, expected['type'])
                self.assertEqual(found.mode, expected['mode'])
                self.assertEqual(found.description,
                                 expected.get('description'))
                self.assertEqual(found.fields, expected.get('fields'))
        else:
            self.assertTrue(query.schema is None)
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/bigquery/test_query.py/TestQueryResults._verifySchema/swapped operands of `in`