예제 #1
0
 def test_snapshot_task_manager(self):
     tm = DumpTaskManager()
     mock = Mock(return_value=None)
     tm._call_silently = mock
     task = tm.execute()
     mock.assert_called_once_with(task, DumpTask)
예제 #2
0
 def test_snapshot_task_manager(self):
     tm = DumpTaskManager()
     mock = Mock(return_value=None)
     tm._call_silently = mock
     task = tm.execute()
     mock.assert_called_once_with(task, DumpTask)
예제 #3
0
 def test_snapshot_task_manager(self):
     tm = DumpTaskManager()
     m = mock.Mock(return_value=None)
     tm._call_silently = m
     task = tm.execute()
     m.assert_called_once_with(task, DumpTask, conf=None, auth_token=None)