function pollUpdate($nid, $title, $edit) {
// Edit the poll node.
$this
->drupalPost('node/' . $nid . '/edit', $edit, t('Save'));
$this
->assertText(t('@type @title has been updated.', array(
'@type' => node_type_get_name('poll'),
'@title' => $title,
)), 'Poll has been updated.');
}