def testLazyFieldComputation(self):
        folder = self.model('folder').createFolder(
            parent=self.admin, parentType='user', creator=self.admin,
            name=' My Folder Name')

        self.assertEqual(folder['lowerName'], 'my folder name')
        self.assertEqual(folder['baseParentType'], 'user')

        # Force the item to be saved without lowerName and baseParentType
        # fields
        del folder['lowerName']
        del folder['baseParentType']
        self.model('folder').save(folder, validate=False)

        folder = self.model('folder').find({'_id': folder['_id']})[0]
        self.assertNotHasKeys(folder, ('lowerName', 'baseParentType'))

        # Now ensure that calling load() actually populates those fields and
        # saves the results persistently
        self.model('folder').load(folder['_id'], force=True)
        folder = self.model('folder').find({'_id': folder['_id']})[0]
        self.assertHasKeys(folder, ('lowerName', 'baseParentType'))
        self.assertEqual(folder['lowerName'], 'my folder name')
        self.assertEqual(folder['baseParentType'], 'user')
        self.assertEqual(folder['baseParentId'], self.admin['_id'])
Demonstrate that a folder that is saved in the database without
dataset/ETHPy150Open girder/girder/tests/cases/folder_test.py/FolderTestCase.testLazyFieldComputation