#!/usr/bin/env python
-#-*- coding:utf-8 -*-
+# -*- coding:utf-8 -*-
# Copyright (C) 2010-2018 CEA/DEN
#
from src.salomeTools import Sat
from unittestpy.tools import outRedirection
+
class TestCase(unittest.TestCase):
"""sat config --value"""
-
+
def test_010(self):
# Test the display of the right value of "sat config -v VARS.hostname"
OK = "KO"
# The command to test
sat = Sat()
- sat.config('-v VARS.hostname')
+ sat.config("-v VARS.hostname")
# stop output redirection
my_out.end_redirection()
# The command to test
sat = Sat()
- sat.config('-l')
+ sat.config("-l")
# stop output redirection
my_out.end_redirection()
if "ERROR" not in res:
OK = "OK"
self.assertEqual(OK, "OK")
-
+
"""
def test_030(self):
# Test the exception when salomeTools.pyconf has errors
shutil.copyfile(salomeToolspyconfPath_save, salomeToolspyconfPath)
os.remove(salomeToolspyconfPath_save)
self.assertEqual(OK, "OK")
- """
-
+ """
+
+
# test launch
-if __name__ == '__main__':
+if __name__ == "__main__":
unittest.main()
pass