@@ -350,23 +350,23 @@ def testGetWlstAttributeNameAndValue(self):
350350 def testGetModelAttributeNameAndValue (self ):
351351 location = get_jdbc_ds_params_location ('my-datasource' , self .aliases )
352352
353- # get model attribute value should return the value only if its NOT the default
354- boolean_values = ['false' , None ]
353+ # get model attribute value should return the value only if it's NOT the default
354+ boolean_values = ['false' , False ]
355355 wlst_attribute_name = 'RowPrefetch'
356356 wlst_attribute_value = boolean_values [0 ]
357357 model_attribute_name , model_attribute_value = \
358358 self .aliases .get_model_attribute_name_and_value (location , wlst_attribute_name , wlst_attribute_value )
359- self .assertEqual (model_attribute_value , boolean_values [1 ])
359+ self .assertEqual (bool ( model_attribute_value ) , boolean_values [1 ])
360360
361- # get model attribute value should return the value only if its NOT the default
361+ # get model attribute value should return the value only if it's NOT the default
362362 string_value = [None , None ]
363363 wlst_attribute_name = 'RowPrefetchSize'
364364 wlst_attribute_value = string_value [0 ]
365365 model_attribute_name , model_attribute_value = \
366366 self .aliases .get_model_attribute_name_and_value (location , wlst_attribute_name , wlst_attribute_value )
367367 self .assertEqual (model_attribute_value , string_value [1 ])
368368
369- # get model attribute value should return the value only if its NOT the default
369+ # get model attribute value should return the value only if it's NOT the default
370370 location = LocationContext ()
371371 location .append_location (FOLDERS .SERVER )
372372 boolean_values = [0 , None ]
0 commit comments