10 """test version model"""
13 """test if getVersion return non-empty string"""
14 self.assertTrue( len(models.getVersionString()) > 0 )
17 """test if getDBName return non-empty string"""
18 self.assertTrue( len(models.getDBName()) > 0)
21 """test if getDBUser return non-empty string"""
22 self.assertTrue( len(models.getDBUser()) > 0)
25 """test if getDBPassword return non-empty string"""
26 self.assertTrue( len(models.getDBPassword()) > 0)
29 """test if getDBPassword return any output"""
30 v = models.getDBVersionString()
31 self.assertTrue( len(v) > 0)
32 self.assertNotEqual( str(v),
'unknown' )
35 """check if database version string has 'ver'"""
36 self.assertEqual( models._versionFromRow(
''),
'unknown' )
38 self.assertEqual( models._versionFromRow(t),
'ver')
41 """test version interface"""
44 """check if get service return non-empty dict"""
46 self.assertEqual( len(d), 3)
def test02getDBName(self)
def test03getDBUser(self)
def test04getDBPassword(self)
def test06versionFromRow(self)
def test01getVersionString(self)
def test05getDBVersionString(self)