Exemple #1
0
 def test_seek_finds_no_match(self):
     pillar = {'a': {'b': {'c': {'x': 'y'}}}}
     ret = cephdisks._seek(['a', 'b', 'c', 'd'], pillar)
     assert ret is None
Exemple #2
0
 def test_seek_finds_no_match2(self):
     pillar = {'a': {'b': {'c': {'d': 'e'}}}}
     ret = cephdisks._seek([], pillar)
     assert ret is None
Exemple #3
0
 def test_seek_works(self):
     pillar = {'a': {'b': {'c': {'d': 'e'}}}}
     ret = cephdisks._seek(['a', 'b', 'c', 'd'], pillar)
     assert ret == 'e'