'squashmigrations squashes migrations.'

def test_squashmigrations_squashes(self):

    with self.temporary_migration_module(module='migrations.test_migrations') as migration_dir:
        call_command('squashmigrations', 'migrations', '0002', interactive=False, verbosity=0)
        squashed_migration_file = os.path.join(migration_dir, '0001_squashed_0002_second.py')
        self.assertTrue(os.path.exists(squashed_migration_file))
