'Testing multilevel delete'

def test_dict_array_dict_remove(self):

    yed = Yedit('yedit_test.yml', separator=':')
    yed.put('b:c:d[0]', [{'x': {'y': 'inject'}}])
    yed.delete('b:c:d[0]:[0]:x:y')
    self.assertTrue(('b' in yed.yaml_dict))
    self.assertTrue(('c' in yed.yaml_dict['b']))
    self.assertTrue(('d' in yed.yaml_dict['b']['c']))
    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(('y' in yed.yaml_dict['b']['c']['d'][0][0]['x']))
