D-Bus testing: adapted to fully implemented GetConfigs()

Now that GetConfigs() correctly returns the actual templates
list instead of a hard-coded "google", the test had to be adapted.
This commit is contained in:
Patrick Ohly 2009-10-29 11:03:39 +01:00
parent a3bf147726
commit 999a0c6099
1 changed files with 8 additions and 1 deletions

View File

@ -164,7 +164,14 @@ class TestDBusServer(unittest.TestCase, DBusUtil):
def testGetConfigsTemplates(self):
"""read templates"""
configs = self.server.GetConfigs(True, utf8_strings=True)
self.failUnlessEqual(configs, ["google"])
configs.sort()
self.failUnlessEqual(configs, ["Funambol",
"Google",
"Memotoo",
"Mobical",
"ScheduleWorld",
"Synthesis",
"ZYB"])
def testGetConfigScheduleWorld(self):
"""read ScheduleWorld template"""