From 70a1aced7868b07774cd5e1de225f56b2f0665b4 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 15 Apr 2012 14:02:44 +0200 Subject: [PATCH] Add tests for Unix.sysuptime and Unix.sysuname. --- plugins/Unix/test.py | 6 ++++++ src/version.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/Unix/test.py b/plugins/Unix/test.py index 42b8d4108..3cecdcd86 100644 --- a/plugins/Unix/test.py +++ b/plugins/Unix/test.py @@ -92,4 +92,10 @@ if os.name == 'posix': self.assertNotError('unix call /bin/ping -c 1 localhost') self.assertRegexp('unix call /bin/ping -c 1 localhost', 'ping statistics') self.assertError('unix call /usr/bin/nosuchcommandaoeuaoeu') + + def testUptime(self): + self.assertNotError('unix sysuptime') + + def testUname(self): + self.assertNotError('unix sysuname') # vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79: diff --git a/src/version.py b/src/version.py index 84ccad0b9..68bd34ac8 100644 --- a/src/version.py +++ b/src/version.py @@ -1,3 +1,3 @@ """stick the various versioning attributes in here, so we only have to change them once.""" -version = '0.83.4.1+limnoria (2012-04-15T12:02:39+0000)' +version = '0.83.4.1+limnoria (2012-04-15T12:02:44+0000)'