def testLegacyItems(self):
    folder = Folder().createFolder(parent=self.users[0], parentType='user', creator=self.users[0], name='New Folder')
    item = Item().createItem(name='LegacyItem', creator=self.users[0], folder=folder)
    del item['meta']
    item = Item().save(item)
    assert ('meta' not in item)
    item = Item().load(item['_id'], user=self.users[0])
    assert ('meta' in item)
def testLegacyItems(self):
    folder = Folder().createFolder(parent=self.users[0], parentType='user', creator=self.users[0], name='New Folder')
    item = Item().createItem(name='LegacyItem', creator=self.users[0], folder=folder)
    del item['meta']
    item = Item().save(item)
    assert ('meta' not in item)
    item = Item().load(item['_id'], user=self.users[0])
    assert ('meta' in item)