#!/usr/bin/env python
-#-*- coding:utf-8 -*-
+# -*- coding:utf-8 -*-
# Copyright (C) 2010-2018 CEA/DEN
#
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