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)
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)