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