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