#NEWLINE# def test_set_array_value_accepts_iterable( self ) : #NEWLINE# #INDENT# class MyConfig ( self . CONFIG_TYPE ) : #NEWLINE# #INDENT# lucky_numbers = ArrayOption ( 'LuckyNumber' , IntOption ( '_' ) ) #NEWLINE# #UNINDENT# c = MyConfig . get_instance ( ) #NEWLINE# c . set_array_value ( 'LuckyNumber' , [ '7' , '42' ] ) #NEWLINE# self . assertEqual ( c . lucky_numbers , [ 7 , 42 ] ) #NEWLINE# c . set_array_value ( 'LuckyNumber' , ( '7' , '42' ) ) #NEWLINE# self . assertEqual ( self . lucky_numbers , [ 7 , 42 ] )