#NEWLINE# def test_add_event_callback( self ) : #NEWLINE# #INDENT# rpi_gpio = Mock ( ) #NEWLINE# adapter = GPIO . RPiGPIOAdapter ( rpi_gpio ) #NEWLINE# adapter . add_event_callback ( 1 , callback = self . test_add_event_callback ) #NEWLINE# rpi_gpio . add_event_callback . assert_called_with ( 1 , self . test_add_event_callback )