D-Bus Testing: added tests for version getters

This commit is contained in:
Krzesimir Nowak 2012-04-25 14:56:44 +02:00 committed by Patrick Ohly
parent 16b8e3ffb5
commit e6b2598766
1 changed files with 14 additions and 0 deletions

View File

@ -4165,6 +4165,20 @@ sources/todo/config.ini:# databasePassword = '''.format(
self.assertRegexpMatches(out, r'^List databases:\n(.*\n)*\[ERROR\] --foo-bar: unknown parameter\n$')
self.assertEqual(1, code)
peerMin = self.getPeerMinVersion()
peerCur = self.getPeerCurVersion()
contextMin = self.getContextMinVersion()
contextCur = self.getContextCurVersion()
rootMin = self.getRootMinVersion()
rootCur = self.getRootCurVersion()
self.assertRegexpMatches(peerMin, r'^\d+$', 'Peer min version is not a number.')
self.assertRegexpMatches(peerCur, r'^\d+$', 'Peer cur version is not a number.')
self.assertRegexpMatches(contextMin, r'^\d+$', 'Context min version is not a number.')
self.assertRegexpMatches(contextCur, r'^\d+$', 'Context cur version is not a number.')
self.assertRegexpMatches(rootMin, r'^\d+$', 'Peer min version is not a number.')
self.assertRegexpMatches(rootCur, r'^\d+$', 'Root cur version is not a number.')
def assertSilent(self, out, err):
if err != None:
self.assertEqualDiff('', err)