'A name longer than 30 characters (since len(BrinIndex.suffix) is 4
rather than usual limit of 3) is okay for PostgreSQL. For this test,
the name of the field (\'datetimes\') must be at least 7 characters to
generate a name longer than 30 characters.'

def test_name_auto_generation(self):

    index = BrinIndex(fields=['datetimes'])
    index.set_name_with_model(DateTimeArrayModel)
    self.assertEqual(index.name, 'postgres_te_datetim_abf104_brin')
