Salome HOME
style: black format
[tools/sat.git] / test / test_sat5_0 / config / test_option_copy.py
index bb7fe0b891475ed5379c383cf720c9de18358f4e..08b4f5d2d0fc72b817bd6f12bdeb5796e1c8c39b 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-#-*- coding:utf-8 -*-
+# -*- coding:utf-8 -*-
 
 #  Copyright (C) 2010-2018  CEA/DEN
 #
@@ -23,28 +23,37 @@ import unittest
 
 from src.salomeTools import Sat
 
+
 class TestCase(unittest.TestCase):
     """sat config --copy"""
-    
+
     def test_010(self):
         # Test the copy of a pyconf
         res = "KO"
         appli_to_copy = "appli-test"
 
-        expected_file = os.path.expanduser(os.path.join('~','.salomeTools', 'Applications', 'LOCAL_' + appli_to_copy + '.pyconf'))
+        expected_file = os.path.expanduser(
+            os.path.join(
+                "~",
+                ".salomeTools",
+                "Applications",
+                "LOCAL_" + appli_to_copy + ".pyconf",
+            )
+        )
         if os.path.exists(expected_file):
             os.remove(expected_file)
-               
+
         # The command to test
-        sat = Sat('')
-        sat.config('appli-test -c')
+        sat = Sat("")
+        sat.config("appli-test -c")
 
         if os.path.exists(expected_file):
             res = "OK"
             os.remove(expected_file)
         self.assertEqual(res, "OK")
 
+
 # test launch
-if __name__ == '__main__':
+if __name__ == "__main__":
     unittest.main()
     pass