Beispiel #1
0
    def testLoadFilename(self):

        scenePath = self.getTmpScenePath()
        doc = Document()
        doc.save(scenePath)
        doc.new(warn=False)
        doc.load(scenePath, warn=False)
        assert doc.filename == scenePath
Beispiel #2
0
	def testLoadFilename(self):

		scenePath = self.getTmpScenePath()
		doc = Document()
		doc.save(scenePath)
		doc.new(warn=False)
		doc.load(scenePath, warn=False)
		assert doc.filename == scenePath
Beispiel #3
0
	def testParent(self):
		
		n = Node.createNode('foo')
		# TODO use hash?
		assert toLua(n.parent) == toLua(Document())
Beispiel #4
0
	def setup_class(cls):
		Document().new(warn=False)
Beispiel #5
0
    def testSaveAndFilename(self):

        scenePath = self.getTmpScenePath()
        doc = Document()
        doc.save(scenePath)
        assert doc.filename == scenePath
Beispiel #6
0
 def testUnknownAttr(self):
     Document().DummyDummyAttr
Beispiel #7
0
 def testPreferences(self):
     Document().Preferences.CommandPort.set(1777)
Beispiel #8
0
 def testGetPreferences(self):
     assert isinstance(Document().Preferences, Node)
Beispiel #9
0
	def testSaveAndFilename(self):
		
		scenePath = self.getTmpScenePath()
		doc = Document()
		doc.save(scenePath)
		assert doc.filename == scenePath