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
def test_seek_finds_no_match2(self): pillar = {'a': {'b': {'c': {'d': 'e'}}}} ret = cephdisks._seek([], pillar) assert ret is None
def test_seek_works(self): pillar = {'a': {'b': {'c': {'d': 'e'}}}} ret = cephdisks._seek(['a', 'b', 'c', 'd'], pillar) assert ret == 'e'