#NEWLINE# def test_ensure_string_list( self ) : #NEWLINE# #INDENT# cmd = self . cmd #NEWLINE# cmd . not_string_list = [ 'one' , 2 , 'three' ] #NEWLINE# cmd . yes_string_list = [ 'one' , 'two' , 'three' ] #NEWLINE# cmd . not_string_list2 = object ( ) #NEWLINE# cmd . yes_string_list2 = 'ok' #NEWLINE# cmd . ensure_string_list ( 'yes_string_list' ) #NEWLINE# cmd . ensure_string_list ( 'yes_string_list2' ) #NEWLINE# self . assertRaises ( DistutilsOptionError , cmd . ensure_string_list , 'not_string_list' ) #NEWLINE# self . assertRaises ( DistutilsOptionError , cmd . ensure_string_list , 'not_string_list2' )