#NEWLINE# def test_mixed_annotations( ) : #NEWLINE# #INDENT# 'test that to_synapse_annotations will coerce a list of mixed types to strings' #NEWLINE# a = dict ( foo = [ 1 , 'a' , Datetime ( 1969 , 4 , 28 , 11 , 47 ) ] ) #NEWLINE# sa = to_synapse_annotations ( a ) #NEWLINE# a2 = from_synapse_annotations ( sa ) #NEWLINE# assert ( a2 [ 'foo' ] [ 0 ] == '1' ) #NEWLINE# assert ( a2 [ 'foo' ] [ 1 ] == 'a' ) #NEWLINE# assert ( a2 [ 'foo' ] [ 2 ] . find ( '1969' ) > ( - 1 ) )