'The managers on a model are set.'

def test_create_model_managers(self):

    project_state = self.set_up_test_model('test_cmoma')
    operation = migrations.CreateModel('Food', fields=[('id', models.AutoField(primary_key=True))], managers=[('food_qs', FoodQuerySet.as_manager()), ('food_mgr', FoodManager('a', 'b')), ('food_mgr_kwargs', FoodManager('x', 'y', 3, 4))])
    self.assertEqual(operation.describe(), 'Create    model    Food')
    new_state = project_state.clone()
    operation.state_forwards('test_cmoma', new_state)
    self.assertIn(('test_cmoma', 'food'), new_state.models)
    managers = new_state.models[('test_cmoma', 'food')].managers
    self.assertEqual(managers[0][0], 'food_qs')
    self.assertIsInstance(managers[0][1], models.Manager)
    self.assertEqual(managers[1][0], 'food_mgr')
    self.assertIsInstance(managers[1][1], FoodManager)
    self.assertEqual(managers[1][1].args, ('a', 'b', 1, 2))
    self.assertEqual(managers[2][0], 'food_mgr_kwargs')
    self.assertIsInstance(managers[2][1], FoodManager)
    self.assertEqual(managers[2][1].args, ('x', 'y', 3, 4))
