def resize_server(self, server_id, new_flavor_id, **kwargs):
    'resize and confirm_resize an server, waits for it to be ACTIVE.'
    self.servers_client.resize_server(server_id, new_flavor_id, **kwargs)
    waiters.wait_for_server_status(self.servers_client, server_id, 'VERIFY_RESIZE')
    self.servers_client.confirm_resize_server(server_id)
    waiters.wait_for_server_status(self.servers_client, server_id, 'ACTIVE')
    server = self.servers_client.show_server(server_id)['server']
    self.assert_flavor_equal(new_flavor_id, server['flavor'])
resize and confirm_resize an server, waits for it to be ACTIVE.
def resize_server(self, server_id, new_flavor_id, **kwargs):
    
    self.servers_client.resize_server(server_id, new_flavor_id, **kwargs)
    waiters.wait_for_server_status(self.servers_client, server_id, 'VERIFY_RESIZE')
    self.servers_client.confirm_resize_server(server_id)
    waiters.wait_for_server_status(self.servers_client, server_id, 'ACTIVE')
    server = self.servers_client.show_server(server_id)['server']
    self.assert_flavor_equal(new_flavor_id, server['flavor'])