#NEWLINE# def test_python_list( self ) : #NEWLINE# #INDENT# 'test to make sure list type data is accepted' #NEWLINE# value = [ None , 10 , 9.2 , complex ( 23 , 11 ) , [ 'this is a test' , bytes ( '1,2,3,4,5' ) ] , [ Fraction ( 13 , 21 ) , Decimal ( '3.14' ) ] ] #NEWLINE# self . base . annotate ( data = self ) #NEWLINE# result = { #NEWLINE# #INDENT# 'data' : value , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertListEqual ( value , self . base . annotations [ 'data' ] ) #NEWLINE# self . assertDictEqual ( result , self . base . annotations )