def __init__(self, xcworkspace_path):
        self.identifier = '';
        self.contents = None;
        if xcworkspace_path.endswith('.xcworkspace'):
            self.path = path_helper(xcworkspace_path, 'contents.xcworkspacedata');
            self.identifier = os.path.basename(self.path.obj_path);
            if os.path.exists(self.path.root_path) == True:
                try:
                    self.contents = xml.parse(self.path.root_path);
                except:
                    logging_helper.getLogger().error('[xcworkspace]: Failed to load xcworkspacedata file!');
            else:
                logging_helper.getLogger().error('[xcworkspace]: Could not find xcworkspacedata file!');
        else:
            logging_helper.getLogger().error('[xcworkspace]: Invalid xcworkspace file!');
Test checking for an attribute in a lazily loaded state
dataset/ETHPy150Open samdmarshall/xcparse/xcparse/Xcode/xcworkspace.py/xcworkspace.__init__--crossover with--dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestBasicState.test_in_lazy