def testDeletingDict(self):
     d = ['a', {'b': 'value'}]
     it.del_compound_item(d, 1)
     self.assertEqual(d, ['a'])
 def testDeletingKeyFromDict(self):
     d = ['a', {'b': 'value'}]
     it.del_compound_item(d, 1, 'b')
     self.assertEqual(d, ['a', {}])
 def testDeletingListElement(self):
     d = ['a', 'b']
     it.del_compound_item(d, 1)
     self.assertEqual(d, ['a'])