コード例 #1
0
ファイル: test_helpers.py プロジェクト: lgrawet/lrbd
 def test_iqn_missing_target(self):
     entry = {}
     Common.config['iqns'] = [ "abc" ] 
     #Common.config = { 'iqns' : [ "abc" ] }
     assert iqn(entry) == "abc"
コード例 #2
0
 def test_iqn_missing_target(self):
     entry = {}
     Common.config['iqns'] = ["abc"]
     #Common.config = { 'iqns' : [ "abc" ] }
     assert iqn(entry) == "abc"
コード例 #3
0
ファイル: test_helpers.py プロジェクト: lgrawet/lrbd
 def test_iqn(self):
     entry = { 'target': "def" }
     Common.config = { 'iqns' : [ "abc" ] }
     assert iqn(entry) == "def"
コード例 #4
0
 def test_iqn(self):
     entry = {'target': "def"}
     Common.config = {'iqns': ["abc"]}
     assert iqn(entry) == "def"