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