@@ -79,6 +79,7 @@ def basic_test(self, cf):
7979 'Spacey Bar' ,
8080 'Spacey Bar From The Beginning' ,
8181 'Types' ,
82+ 'This One Has A ] In It' ,
8283 ]
8384
8485 if self .allow_no_value :
@@ -130,6 +131,7 @@ def basic_test(self, cf):
130131 eq (cf .get ('Types' , 'float' ), "0.44" )
131132 eq (cf .getboolean ('Types' , 'boolean' ), False )
132133 eq (cf .get ('Types' , '123' ), 'strange but acceptable' )
134+ eq (cf .get ('This One Has A ] In It' , 'forks' ), 'spoons' )
133135 if self .allow_no_value :
134136 eq (cf .get ('NoValue' , 'option-without-value' ), None )
135137
@@ -320,6 +322,8 @@ def test_basic(self):
320322float {0[0]} 0.44
321323boolean {0[0]} NO
322324123 {0[1]} strange but acceptable
325+ [This One Has A ] In It]
326+ forks {0[0]} spoons
323327""" .format (self .delimiters , self .comment_prefixes )
324328 if self .allow_no_value :
325329 config_string += (
@@ -394,6 +398,9 @@ def test_basic_from_dict(self):
394398 "boolean" : False ,
395399 123 : "strange but acceptable" ,
396400 },
401+ "This One Has A ] In It" : {
402+ "forks" : "spoons"
403+ },
397404 }
398405 if self .allow_no_value :
399406 config .update ({
0 commit comments