Exemple #1
0
 def testValidate_009(self):
     """
     Test validate on a non-empty postgresql section, with user=None.
     """
     config = LocalConfig()
     config.postgresql = PostgresqlConfig(None, "gzip", True, None)
     config.validate()
Exemple #2
0
 def testValidate_004(self):
     """
     Test validate on a non-empty postgresql section, all=True, empty databases.
     """
     config = LocalConfig()
     config.postgresql = PostgresqlConfig("user", "none", True, [])
     config.validate()
Exemple #3
0
 def testValidate_003(self):
     """
     Test validate on a non-empty postgresql section, all=True, databases=None.
     """
     config = LocalConfig()
     config.postgresql = PostgresqlConfig("user", "gzip", True, None)
     config.validate()
Exemple #4
0
 def testValidate_008(self):
     """
     Test validate on a non-empty postgresql section, all=False, non-empty databases.
     """
     config = LocalConfig()
     config.postgresql = PostgresqlConfig("user", "gzip", False,
                                          ["whatever"])
     config.validate()