示例#1
0
 def testValidate_011(self):
     """
   Test validate on a non-empty mysql section, with user=None and password=None.
   """
     config = LocalConfig()
     config.mysql = MysqlConfig(None, None, "gzip", True, None)
     config.validate()
示例#2
0
 def testValidate_004(self):
     """
   Test validate on a non-empty mysql section, all=True, empty databases.
   """
     config = LocalConfig()
     config.mysql = MysqlConfig("user", "password", "none", True, [])
     config.validate()
示例#3
0
 def testValidate_003(self):
     """
   Test validate on a non-empty mysql section, all=True, databases=None.
   """
     config = LocalConfig()
     config.mysql = MysqlConfig("user", "password", "gzip", True, None)
     config.validate()
示例#4
0
 def testValidate_008(self):
     """
   Test validate on a non-empty mysql section, all=False, non-empty databases.
   """
     config = LocalConfig()
     config.mysql = MysqlConfig("user", "password", "gzip", False, [
         "whatever",
     ])
     config.validate()