예제 #1
0
 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
 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"