Ejemplo n.º 1
0
 def testConstructor_017(self):
     """
   Test assignment of all attribute, valid value (real boolean).
   """
     mysql = MysqlConfig()
     self.failUnlessEqual(False, mysql.all)
     mysql.all = True
     self.failUnlessEqual(True, mysql.all)
     mysql.all = False
     self.failUnlessEqual(False, mysql.all)
Ejemplo n.º 2
0
 def testConstructor_018(self):
     """
   Test assignment of all attribute, valid value (expression).
   """
     mysql = MysqlConfig()
     self.failUnlessEqual(False, mysql.all)
     mysql.all = 0
     self.failUnlessEqual(False, mysql.all)
     mysql.all = []
     self.failUnlessEqual(False, mysql.all)
     mysql.all = None
     self.failUnlessEqual(False, mysql.all)
     mysql.all = ['a']
     self.failUnlessEqual(True, mysql.all)
     mysql.all = 3
     self.failUnlessEqual(True, mysql.all)
Ejemplo n.º 3
0
 def testConstructor_016(self):
     """
   Test assignment of all attribute, None value.
   """
     mysql = MysqlConfig(all=True)
     self.failUnlessEqual(True, mysql.all)
     mysql.all = None
     self.failUnlessEqual(False, mysql.all)