@@ -350,23 +350,23 @@ def testGetWlstAttributeNameAndValue(self):
350
350
def testGetModelAttributeNameAndValue (self ):
351
351
location = get_jdbc_ds_params_location ('my-datasource' , self .aliases )
352
352
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 ]
355
355
wlst_attribute_name = 'RowPrefetch'
356
356
wlst_attribute_value = boolean_values [0 ]
357
357
model_attribute_name , model_attribute_value = \
358
358
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 ])
360
360
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
362
362
string_value = [None , None ]
363
363
wlst_attribute_name = 'RowPrefetchSize'
364
364
wlst_attribute_value = string_value [0 ]
365
365
model_attribute_name , model_attribute_value = \
366
366
self .aliases .get_model_attribute_name_and_value (location , wlst_attribute_name , wlst_attribute_value )
367
367
self .assertEqual (model_attribute_value , string_value [1 ])
368
368
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
370
370
location = LocationContext ()
371
371
location .append_location (FOLDERS .SERVER )
372
372
boolean_values = [0 , None ]
0 commit comments