コード例 #1
0
ファイル: test_lun.py プロジェクト: optionalg/storops
 def test_change_name_failed(self):
     l = VNXLun(name='l1', cli=t_cli())
     try:
         l.name = 'l3'
         self.fail('should have raised an exception.')
     except VNXModifyLunError:
         assert_that(l._get_name(), equal_to('l1'))
コード例 #2
0
ファイル: test_lun.py プロジェクト: crook/storops
 def test_change_name_failed(self):
     l = VNXLun(name='l1', cli=t_cli())
     try:
         l.name = 'l3'
         self.fail('should have raised an exception.')
     except VNXModifyLunError:
         assert_that(l._get_name(), equal_to('l1'))
コード例 #3
0
ファイル: test_lun.py プロジェクト: optionalg/storops
 def f():
     l = VNXLun(lun_id=4000, cli=t_cli())
     l.name = 'l1'
コード例 #4
0
ファイル: test_lun.py プロジェクト: optionalg/storops
 def test_change_name(self):
     l = VNXLun(name='m1', cli=t_cli())
     l.name = 'l1'
     assert_that(l.name, equal_to('l1'))
コード例 #5
0
ファイル: test_lun.py プロジェクト: crook/storops
 def f():
     l = VNXLun(lun_id=4000, cli=t_cli())
     l.name = 'l1'
コード例 #6
0
ファイル: test_lun.py プロジェクト: crook/storops
 def test_change_name(self):
     l = VNXLun(name='m1', cli=t_cli())
     l.name = 'l1'
     assert_that(l.name, equal_to('l1'))