def test_dict_array_dict_remove(self):
        yed = Yedit("yedit_test.yml")
        yed.put('b.c.d[0]', [{'x': {'y': 'inject'}}])
        yed.delete('b.c.d[0].[0].x.y')
        self.assertTrue(yed.yaml_dict.has_key('b'))
        self.assertTrue(yed.yaml_dict['b'].has_key('c'))
        self.assertTrue(yed.yaml_dict['b']['c'].has_key('d'))
        self.assertTrue(isinstance(yed.yaml_dict['b']['c']['d'], list))
        self.assertTrue(isinstance(yed.yaml_dict['b']['c']['d'][0], list))
        self.assertTrue(isinstance(yed.yaml_dict['b']['c']['d'][0][0], dict))
        self.assertFalse(yed.yaml_dict['b']['c']['d'][0][0]['x'].has_key('y'))
Restore a snapshot.
dataset/ETHPy150Open openshift/openshift-ansible/test/units/yedit_test.py/YeditTest.test_dict_array_dict_remove--crossover with--dataset/ETHPy150Open KunihikoKido/sublime-elasticsearch-client/lib/elasticsearch/client/snapshot.py/SnapshotClient.restore