Salome HOME
Add copyright header according to request of CEA from 06.06.2017
[modules/shaper.git] / test.squish / suite_FEATURE_SKETCH / tst_sketch_002 / test.py
index bebb08cf805567a7ffa9eff363ac62434c7e87de..cf50036a0ed3f858ebd3a03d60917a812c39831e 100644 (file)
@@ -1,3 +1,23 @@
+## Copyright (C) 2014-2017  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, 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
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+## Lesser General Public License for more details.
+##
+## You should have received a copy of the GNU Lesser General Public
+## License along with this library; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##
+## See http:##www.salome-platform.org/ or
+## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+##
+
 def sketch():
     #[step] Click 'Create sketch' toolbar button
     #[step] Select XY plane for sketching
@@ -6,13 +26,13 @@ def sketch():
     line_create_in_view((265, 107), (520, 192))
     line_create_in_view((520, 192), (443, 411))
     closing_line_create_in_view((443, 411), (101, 183))
-    
+
     #[step] Create one more closed contour inside previous, not parallel to it
     line_create_in_view((219, 198),(269, 166))
     line_create_in_view((269, 166), (451, 230))
     line_create_in_view((451, 230), (410, 334))
     closing_line_create_in_view((410, 334), (219, 199))
-    
+
     #[check] Check that lines are not parallel and there are no icons near lines
     test.vp("VP1")
     #[step] Make according lines parallel
@@ -28,7 +48,7 @@ def main():
     #[Scenario] Sketch_002
     #[Topic] Parallel objects
     #[Tested functionality]Parallelism between main lines
-    
+
     source(findFile("scripts", "common.py"))
 
     #[section] Application start
@@ -36,12 +56,12 @@ def main():
     startApplication("salome_run.sh")
 
     set_defaults()
-    
+
     #[step] Activate SHAPER
     #[step]Click 'New' button
     activate_SHAPER()
     #[section] Creation of main lines and make them parallel
-    
+
     sketch_create(help_points("XY_plane"), lambda: sketch())
     #[step] Save study
     save("RESULTS_PATH + sketch_002")