#NEWLINE# def test_list_applicative_law_identity( self ) : #NEWLINE# #INDENT# x = unit ( 42 ) #NEWLINE# self . assertEquals ( pure ( identity ) . apply ( x ) , x ) #NEWLINE# y = List ( [ ] ) #NEWLINE# self . assertEquals ( pure ( identity ) . apply ( y ) , y ) #NEWLINE# y = List ( range ( 42 ) ) #NEWLINE# self . assertEquals ( pure ( identity ) . apply ( y ) , y )