コード例 #1
0
ファイル: test_volumes.py プロジェクト: 1990ajay/rally
 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
ファイル: test_volumes.py プロジェクト: zhangdelong/rally
 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)