diff options
author | Alessio Sergi <al3hex@gmail.com> | 2015-09-21 16:51:20 +0200 |
---|---|---|
committer | Alessio Sergi <al3hex@gmail.com> | 2015-09-21 16:51:20 +0200 |
commit | 46d4b633b90f85e15b0ba2d64ce31a71a8e5ec6d (patch) | |
tree | 2f680be133d5c6e55077414fdd50f58c1d02db21 /unitest.py | |
parent | 837193ef7bdaf2b37d176cd750235ab0008c2e12 (diff) |
unitest: cosmetic changes
Diffstat (limited to 'unitest.py')
-rwxr-xr-x | unitest.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -3,7 +3,7 @@ # # Glances - An eye on your system # -# Copyright (C) 2014 Nicolargo <nicolas@nicolargo.com> +# Copyright (C) 2015 Nicolargo <nicolas@nicolargo.com> # # 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 |