'Test that sequence resetting as part of a flush with model with long name and long pk name doesn\'t error. Ref #8901'

@skipUnlessDBFeature(u'supports_long_model_names')
def test_sequence_name_length_limits_flush(self):

    VLM = models.VeryLongModelNameZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
    VLM_m2m = VLM.m2m_also_quite_long_zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.through
    tables = [VLM._meta.db_table, VLM_m2m._meta.db_table]
    sequences = [{u'column': VLM._meta.pk.column, u'table': VLM._meta.db_table}]
    cursor = connection.cursor()
    for statement in connection.ops.sql_flush(no_style(), tables, sequences):
        cursor.execute(statement)
