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