From 46d4b633b90f85e15b0ba2d64ce31a71a8e5ec6d Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 21 Sep 2015 16:51:20 +0200 Subject: unitest: cosmetic changes --- unitest.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'unitest.py') diff --git a/unitest.py b/unitest.py index f25dfe71..e4fdc985 100755 --- a/unitest.py +++ b/unitest.py @@ -3,7 +3,7 @@ # # Glances - An eye on your system # -# Copyright (C) 2014 Nicolargo +# Copyright (C) 2015 Nicolargo # # Glances is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by @@ -63,13 +63,13 @@ class TestGlances(unittest.TestCase): try: stats.update() except Exception as e: - print('ERROR: Stats update failed ({})'.format(e)) + print('ERROR: Stats update failed: %s' % e) self.assertTrue(False) time.sleep(1) try: stats.update() except Exception as e: - print('ERROR: Stats update failed ({})'.format(e)) + print('ERROR: Stats update failed: %s' % e) self.assertTrue(False) self.assertTrue(True) @@ -179,6 +179,8 @@ class TestGlances(unittest.TestCase): # self.assertEqual(total, len(stats_grab)) def test_011_output_bars_must_be_between_0_and_100_percent(self): + """Test quick look plugin.""" + print('INFO: [TEST_011] Test progress bar') bar = Bar(size=1) with self.assertRaises(AssertionError): bar.percent = -1 -- cgit v1.2.3