def testLoadFilename(self): scenePath = self.getTmpScenePath() doc = Document() doc.save(scenePath) doc.new(warn=False) doc.load(scenePath, warn=False) assert doc.filename == scenePath
def testParent(self): n = Node.createNode('foo') # TODO use hash? assert toLua(n.parent) == toLua(Document())
def setup_class(cls): Document().new(warn=False)
def testSaveAndFilename(self): scenePath = self.getTmpScenePath() doc = Document() doc.save(scenePath) assert doc.filename == scenePath
def testUnknownAttr(self): Document().DummyDummyAttr
def testPreferences(self): Document().Preferences.CommandPort.set(1777)
def testGetPreferences(self): assert isinstance(Document().Preferences, Node)