Example #1
0
 def test_iqn_missing_target(self):
     entry = {}
     Common.config['iqns'] = [ "abc" ] 
     #Common.config = { 'iqns' : [ "abc" ] }
     assert iqn(entry) == "abc"
Example #2
0
 def test_iqn_missing_target(self):
     entry = {}
     Common.config['iqns'] = ["abc"]
     #Common.config = { 'iqns' : [ "abc" ] }
     assert iqn(entry) == "abc"
Example #3
0
 def test_iqn(self):
     entry = { 'target': "def" }
     Common.config = { 'iqns' : [ "abc" ] }
     assert iqn(entry) == "def"
Example #4
0
 def test_iqn(self):
     entry = {'target': "def"}
     Common.config = {'iqns': ["abc"]}
     assert iqn(entry) == "def"