Exemplo n.º 1
0
 def testConstructor_013(self):
     """
   Test assignment of compressMode attribute, valid value.
   """
     mysql = MysqlConfig()
     self.failUnlessEqual(None, mysql.compressMode)
     mysql.compressMode = "none"
     self.failUnlessEqual("none", mysql.compressMode)
     mysql.compressMode = "gzip"
     self.failUnlessEqual("gzip", mysql.compressMode)
     mysql.compressMode = "bzip2"
     self.failUnlessEqual("bzip2", mysql.compressMode)
Exemplo n.º 2
0
 def testConstructor_012(self):
     """
   Test assignment of compressMode attribute, None value.
   """
     mysql = MysqlConfig(compressMode="none")
     self.failUnlessEqual("none", mysql.compressMode)
     mysql.compressMode = None
     self.failUnlessEqual(None, mysql.compressMode)