Salome HOME
'sat log' : add option --last for terminal mode and add the corresponding test
[tools/sat.git] / test / log / launch_browser.py
index 9a26384a47d14813eb9ebefbd2bc30dfd2539c3b..8439ac3e9f12618c4ecca3d84ed9fd6b554ae985 100644 (file)
@@ -223,6 +223,24 @@ class TestLog(unittest.TestCase):
         # pyunit method to compare 2 str
         self.assertEqual(OK, "OK")
 
+    def test_option_terminal7(self):
+        '''Test the terminal option and option last
+        '''
+
+        OK = "KO"
+        
+        # launch the command that will write a log
+        sat = Sat()
+        
+        try:
+            sat.log('--terminal --last')
+            OK = "OK"
+        finally:
+            sys.stdin = sys.__stdin__
+        
+        # pyunit method to compare 2 str
+        self.assertEqual(OK, "OK")
+
     def test_option_last(self):
         '''Test the option --last
         '''