示例#1
0
 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'})
示例#2
0
 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'})
示例#3
0
文件: svm.py 项目: beluchin/svm
def undo(args):
    s = get_authenticated_youtube()
    operations.undo(s)
示例#4
0
def undo(args):
    s = get_authenticated_youtube()
    operations.undo(s)