#NEWLINE# def test_parse( self ) : #NEWLINE# #INDENT# reader = mock ( ) #NEWLINE# expect ( reader . read_short ) . returns ( 'class_id' ) #NEWLINE# expect ( reader . read_short ) . returns ( 'method_id' ) #NEWLINE# frame = MethodFrame . parse ( 42 , reader ) #NEWLINE# assert_equals ( 42 , frame . channel_id ) #NEWLINE# assert_equals ( 'class_id' , frame . class_id ) #NEWLINE# assert_equals ( 'method_id' , frame . method_id ) #NEWLINE# assert_equals ( reader , frame . args )