Salome HOME
Porting to Python 3 (1st draft)
[modules/hexablock.git] / src / TEST_PY / test_unit / hexa_quads.py
index 15cda175e2fd82422ae7329d3d65efc1018bb2e0..fcf287d600b5596c544f76463963df9af4621dbd 100644 (file)
@@ -1,10 +1,10 @@
 # -*- coding: latin-1 -*-
-# Copyright (C) 2009-2012  CEA/DEN, EDF R&D
+# Copyright (C) 2009-2016  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -22,7 +22,6 @@
 
 import hexablock
 import os
-import geompy
 
 #---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
 # ================================================================= save_schema
@@ -77,7 +76,7 @@ def test_hexa_quads_5 () :
 
 # ========================================================== test_hexa_quads_ab
 def test_hexa_quads_ab () :
-    doc  = hexablock.addDocument()
+    doc  = hexablock.addDocument ("default")
     vtk  = FileVtk (doc, "HexaQuadsAB");
     grid = add_grid (doc, 1, 1, 3)
     vtk.save ()
@@ -105,7 +104,7 @@ def test_hexa_quads_ab () :
 
 # ========================================================== test_hexa_quads_ac
 def test_hexa_quads_ac () :
-    doc  = hexablock.addDocument()
+    doc  = hexablock.addDocument ("default")
     vtk  = FileVtk (doc, "HexaQuadsAC");
     grid = add_grid (doc, 2, 1, 2)
     vtk.save ()
@@ -134,7 +133,7 @@ def test_hexa_quads_ac () :
 # ======================================================= test_hexa_quads_acd
 def test_hexa_quads_acd () :
 
-    doc  = hexablock.addDocument()
+    doc  = hexablock.addDocument ("default")
     vtk  = FileVtk (doc, "HexaQuadsACD");
     grid = add_grid (doc, 3, 1, 2)
     vtk.save ()
@@ -163,7 +162,7 @@ def test_hexa_quads_acd () :
 # ======================================================= test_hexa_quads_ace
 def test_hexa_quads_ace () :
 
-    doc  = hexablock.addDocument()
+    doc  = hexablock.addDocument ("default")
     vtk  = FileVtk (doc, "HexaQuadsACE");
     grid = add_grid (doc, 2, 2, 2)
     vtk.save ()
@@ -191,7 +190,7 @@ def test_hexa_quads_ace () :
 # ======================================================= test_hexa_quads_abcd
 def test_hexa_quads_abcd () :
 
-    doc  = hexablock.addDocument()
+    doc  = hexablock.addDocument ("default")
     vtk  = FileVtk (doc, "HexaQuadsABCD");
     grid = add_grid (doc, 3, 1, 3)
     vtk.save ()
@@ -218,7 +217,7 @@ def test_hexa_quads_abcd () :
 # ======================================================= test_hexa_quads_abce
 def test_hexa_quads_abce () :
 
-    doc  = hexablock.addDocument()
+    doc  = hexablock.addDocument ("default")
     vtk  = FileVtk (doc, "HexaQuadsABCE");
     grid = add_grid (doc, 3, 2, 2)
     vtk.save ()