def test_get_product(self): #We verify if the structure of the tree is the same for a file without decompose and the new file generated once decomposed product = self.document.get_product(self.stp) self.post(self.base_url + "decompose/" + str(self.stp.id) + "/", self.data_to_decompose) ctrl = Document3DController( Document3D.objects.get(id=self.document.id), self.user) product2 = ctrl.get_product(ctrl.files[0], True) self.assertTrue(same_structure(product, product2))