'MigrationLoader.check_consistent_history() should ignore unapplied
squashed migrations that have all of their `replaces` applied.'

@override_settings(MIGRATION_MODULES={'migrations': 'migrations.test_migrations_squashed_extra'}, INSTALLED_APPS=['migrations'])
def test_check_consistent_history_squashed(self):

    loader = MigrationLoader(connection=None)
    recorder = MigrationRecorder(connection)
    recorder.record_applied('migrations', '0001_initial')
    recorder.record_applied('migrations', '0002_second')
    loader.check_consistent_history(connection)
    recorder.record_applied('migrations', '0003_third')
    loader.check_consistent_history(connection)
