          )
          # Right number/type of migrations?
          self.assertNumberMigrations(changes, "otherapp", 1)
          self.assertOperationTypes(changes, 'otherapp', 0, [
              'AlterUniqueTogether',
              'AlterIndexTogether',
              'AlterUniqueTogether',
              'AlterIndexTogether',
              'RemoveField',
          ])
          self.assertOperationAttributes(
 
</s> remove             'AlterUniqueTogether',
            'AlterIndexTogether',
 </s> add  </s> remove             'AlterUniqueTogether',
            'AlterIndexTogether',
 </s> add  </s> remove             changes, 'otherapp', 0, 0, name='book', unique_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 1, name='book', index_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 2, name='book',
 </s> add             changes, 'otherapp', 0, 0, name='book', </s> remove             changes, 'otherapp', 0, 0, name='book', unique_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 1, name='book', index_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 2, name='book',
 </s> add             changes, 'otherapp', 0, 0, name='book', </s> remove             changes, 'otherapp', 0, 1, name='book', unique_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 2, name='book', index_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 3, name='book',
 </s> add             changes, 'otherapp', 0, 1, name='book',
          )
          # Right number/type of migrations?
          self.assertNumberMigrations(changes, "otherapp", 1)
          self.assertOperationTypes(changes, 'otherapp', 0, [


              'AlterUniqueTogether',
              'AlterIndexTogether',
              'RemoveField',
          ])
          self.assertOperationAttributes(
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #33402 -- Optimized multiple AlterFooTogether operations. 
tests/migrations/test_autodetector.py