'Tests the DeleteModel operation ignores swapped models.'

@override_settings(TEST_SWAP_MODEL='migrations.SomeFakeModel')
def test_delete_ignore_swapped(self):

    operation = migrations.DeleteModel('Pony')
    (project_state, new_state) = self.make_test_state('test_dligsw', operation)
    self.assertTableNotExists('test_dligsw_pony')
    with connection.schema_editor() as editor:
        operation.database_forwards('test_dligsw', editor, project_state, new_state)
    self.assertTableNotExists('test_dligsw_pony')
    with connection.schema_editor() as editor:
        operation.database_backwards('test_dligsw', editor, new_state, project_state)
    self.assertTableNotExists('test_dligsw_pony')
