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