Esempio n. 1
0
    def setUp(self):
        super(DecomposerTestCase, self).setUp()
        self.document = Document3DController.create('doc1', 'Document3D',
                'a', self.user, self.DATA)
        self.controller.attach_to_document(self.document)

        f=open("apps/document3D/data_test/test.stp")
        myfile = File(f)
        myfile.name="test.stp"
        self.stp=self.document.add_file(myfile)

        self.ctrl2 = Document3DController.create('doc2', 'Document3D',
                'a', self.user, self.DATA)
Esempio n. 2
0
    def setUp(self):
        super(DecomposerTestCase, self).setUp()
        self.document = Document3DController.create('doc1', 'Document3D', 'a',
                                                    self.user, self.DATA)
        self.controller.attach_to_document(self.document)

        f = open("apps/document3D/data_test/test.stp")
        myfile = File(f)
        myfile.name = "test.stp"
        self.stp = self.document.add_file(myfile)

        self.ctrl2 = Document3DController.create('doc2', 'Document3D', 'a',
                                                 self.user, self.DATA)
Esempio n. 3
0
 def setUp(self):
     super(arborescense_Test, self).setUp()
     self.document = Document3DController.create('doc1', 'Document3D', 'a',
                                                 self.user, self.DATA)
     f = open("apps/document3D/data_test/test.stp")
     myfile = File(f)
     self.stp = self.document.add_file(myfile)
     self.controller.attach_to_document(self.document.object)
     self.data_to_decompose = self.update_data(self.stp)
Esempio n. 4
0
 def setUp(self):
     super(arborescense_Test, self).setUp()
     self.document = Document3DController.create('doc1', 'Document3D',
             'a', self.user, self.DATA)
     f=open("apps/document3D/data_test/test.stp")
     myfile = File(f)
     self.stp=self.document.add_file(myfile)
     self.controller.attach_to_document(self.document.object)
     self.data_to_decompose = self.update_data(self.stp)
Esempio n. 5
0
 def setUp(self):
     super(view_3dTest, self).setUp()
     self.document = Document3DController.create('doc1', 'Document3D',
             'a', self.user, self.DATA)