def test_undo_rename(self): rename(self._youtube, {'2_qmVg0qn-c': 'before'}, on_rename=support_undo()) rename(self._youtube, {'2_qmVg0qn-c': 'after'}, on_rename=support_undo()) undo(self._youtube) self.assertDictEqual(video_titles(self._youtube, ['2_qmVg0qn-c']), {'2_qmVg0qn-c': 'before'})
def test_undo_rename(self): rename(self._youtube, {'2_qmVg0qn-c': 'before'}, on_rename=support_undo()) rename(self._youtube, {'2_qmVg0qn-c': 'after'}, on_rename=support_undo()) undo(self._youtube); self.assertDictEqual(video_titles(self._youtube, ['2_qmVg0qn-c']), {'2_qmVg0qn-c': 'before'})
def undo(args): s = get_authenticated_youtube() operations.undo(s)