示例#1
0
 def testConstructor_017(self):
     """
     Test assignment of all attribute, valid value (real boolean).
     """
     mysql = MysqlConfig()
     self.assertEqual(False, mysql.all)
     mysql.all = True
     self.assertEqual(True, mysql.all)
     mysql.all = False
     self.assertEqual(False, mysql.all)
示例#2
0
 def testConstructor_018(self):
     """
     Test assignment of all attribute, valid value (expression).
     """
     mysql = MysqlConfig()
     self.assertEqual(False, mysql.all)
     mysql.all = 0
     self.assertEqual(False, mysql.all)
     mysql.all = []
     self.assertEqual(False, mysql.all)
     mysql.all = None
     self.assertEqual(False, mysql.all)
     mysql.all = ["a"]
     self.assertEqual(True, mysql.all)
     mysql.all = 3
     self.assertEqual(True, mysql.all)
示例#3
0
 def testConstructor_016(self):
     """
     Test assignment of all attribute, None value.
     """
     mysql = MysqlConfig(all=True)
     self.assertEqual(True, mysql.all)
     mysql.all = None
     self.assertEqual(False, mysql.all)