@requires_sqlite
def test_generate_models_indexes(self):
    models = self.introspector.generate_models()
    self.assertEqual(models['fkpk']._meta.indexes, [])
    self.assertEqual(models['rel_model']._meta.indexes, [])
    self.assertEqual(models['category']._meta.indexes, [])
    col_types = models['col_types']
    indexed = set(['f1'])
    unique = set(['f10'])
    for field in col_types._meta.sorted_fields:
        self.assertEqual(field.index, (field.name in indexed))
        self.assertEqual(field.unique, (field.name in unique))
    indexes = col_types._meta.indexes
    self.assertEqual(sorted(indexes), [(['f10', 'f11'], True), (['f11', 'f8', 'f13'], False)])
@requires_sqlite
def test_generate_models_indexes(self):
    models = self.introspector.generate_models()
    self.assertEqual(models['fkpk']._meta.indexes, [])
    self.assertEqual(models['rel_model']._meta.indexes, [])
    self.assertEqual(models['category']._meta.indexes, [])
    col_types = models['col_types']
    indexed = set(['f1'])
    unique = set(['f10'])
    for field in col_types._meta.sorted_fields:
        self.assertEqual(field.index, (field.name in indexed))
        self.assertEqual(field.unique, (field.name in unique))
    indexes = col_types._meta.indexes
    self.assertEqual(sorted(indexes), [(['f10', 'f11'], True), (['f11', 'f8', 'f13'], False)])