def METHOD_NAME(self):
    """'add' then 'done' then 'undo'"""
    self.t('add two')
    code, out, err = self.t('_get 1.status')
    self.assertEqual(out.strip(), 'pending')
    self.t('1 done')
    code, out, err = self.t('_get 1.status')
    self.assertEqual(out.strip(), 'completed')
    self.t('undo', input="y\n")
    code, out, err = self.t('_get 1.status')
    self.assertEqual(out.strip(), 'pending')