예제 #1
0
 def test_list_volumes(self):
     scenario = volumes.ListVolumes(self.context)
     scenario._list_volumes = mock.MagicMock()
     scenario.run(True)
     scenario._list_volumes.assert_called_once_with(True)
예제 #2
0
 def test_list_volumes(self):
     mock_service = self.mock_cinder.return_value
     scenario = volumes.ListVolumes(self._get_context())
     scenario.run(True)
     mock_service.list_volumes.assert_called_once_with(True)