Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 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()