parameters: (self)
docstring: Test delete
docstring_summary: Test delete
docstring_tokens: Test delete
function: def test_delete(self):
          """Test delete"""
          # delete non-existing item
          self.assertEqual(self.doc.delete('a'), False, 'Failed delete')
          
          # delete item without meta
          self.doc.set('a', 1)
          self.assertEqual(self.doc.delete('a'), True, 'Failed delete')
          self.assertEqual(self.doc.has('a'), False, 'Failed delete')
          
          # delete item with meta
          self.doc.set('a', 2)
          self.doc.set_meta('meta1', 'test', 'a')
          self.assertEqual(self.doc.delete('a'), True, 'Failed delete')
          self.assertEqual(self.doc.has('a'), False, 'Failed delete')
          self.assertEqual(self.doc.has_meta('meta1', 'a'), False, 
              'Failed delete')
function_tokens: def test_delete ( self ) : # delete non-existing item self . assertEqual ( self . doc . delete ( 'a' ) , False , 'Failed delete' ) # delete item without meta self . doc . set ( 'a' , 1 ) self . assertEqual ( self . doc . delete ( 'a' ) , True , 'Failed delete' ) self . assertEqual ( self . doc . has ( 'a' ) , False , 'Failed delete' ) # delete item with meta self . doc . set ( 'a' , 2 ) self . doc . set_meta ( 'meta1' , 'test' , 'a' ) self . assertEqual ( self . doc . delete ( 'a' ) , True , 'Failed delete' ) self . assertEqual ( self . doc . has ( 'a' ) , False , 'Failed delete' ) self . assertEqual ( self . doc . has_meta ( 'meta1' , 'a' ) , False , 'Failed delete' )