def test_pathname_setting_pillar(self, seek): seek.return_value = 'pillar value' cephdisks.__pillar__ = {} ret = cephdisks._pathname_setting("") assert ret == 'pillar value'
def test_pathname_setting_default(self, seek): seek.return_value = None cephdisks.__pillar__ = {} ret = cephdisks._pathname_setting("") assert ret == '/dev/disk/by-id'
def test_pathname_setting_arg(self): ret = cephdisks._pathname_setting('/dev/custom') assert ret == '/dev/custom'