22
33import irods .client_configuration as cfg
44
5+
56# Test assignments on the negative and positive space of the
67# client configuration.
7-
88class TestClientConfigurationAttributes (unittest .TestCase ):
9-
109 def test_configuration_writes_and_miswrites__issue_708 (self ):
1110 # For caching configuration objects
1211 configuration_level = {}
@@ -19,16 +18,15 @@ def test_configuration_writes_and_miswrites__issue_708(self):
1918 attribute_name = name_parts [- 1 ]
2019 if isinstance (value , cfg .iRODSConfiguration ):
2120 configuration_level [dotted_name ] = value
22- else :
23- if is_conf :
24- leaf_names .append (attribute_name )
21+ elif is_conf :
22+ leaf_names .append (attribute_name )
2523
26- # Test the positive space, i.e. the 'hit'
27- setattr (configuration_level [namespace ], attribute_name , value )
24+ # Test the positive space, i.e. the 'hit'
25+ setattr (configuration_level [namespace ], attribute_name , value )
2826
29- # Test the negative space, i.e. the 'miss'
30- with self .assertRaises (AttributeError ):
31- setattr (configuration_level [namespace ], attribute_name + '_1' , value )
27+ # Test the negative space, i.e. the 'miss'
28+ with self .assertRaises (AttributeError ):
29+ setattr (configuration_level [namespace ], attribute_name + '_1' , value )
3230
3331 # These cases were identified as likely ones for possible failed writes via misspelling.
3432 self .assertIn ('irods_query_limit' , leaf_names )
0 commit comments