'Tests the DeleteModel operation ignores proxy models.'

def test_delete_proxy_model(self):

    project_state = self.set_up_test_model('test_dlprmo', proxy_model=True)
    operation = migrations.DeleteModel('ProxyPony')
    new_state = project_state.clone()
    operation.state_forwards('test_dlprmo', new_state)
    self.assertIn(('test_dlprmo', 'proxypony'), project_state.models)
    self.assertNotIn(('test_dlprmo', 'proxypony'), new_state.models)
    self.assertTableExists('test_dlprmo_pony')
    self.assertTableNotExists('test_dlprmo_proxypony')
    with connection.schema_editor() as editor:
        operation.database_forwards('test_dlprmo', editor, project_state, new_state)
    self.assertTableExists('test_dlprmo_pony')
    self.assertTableNotExists('test_dlprmo_proxypony')
    with connection.schema_editor() as editor:
        operation.database_backwards('test_dlprmo', editor, new_state, project_state)
    self.assertTableExists('test_dlprmo_pony')
    self.assertTableNotExists('test_dlprmo_proxypony')
