#NEWLINE# def test_input( self ) : #NEWLINE# #INDENT# bbio_gpio = Mock ( ) #NEWLINE# adapter = GPIO . AdafruitBBIOAdapter ( bbio_gpio ) #NEWLINE# bbio_gpio . input = Mock ( return_value = True ) #NEWLINE# val = adapter . input ( 1 ) #NEWLINE# self . assertTrue ( val ) #NEWLINE# bbio_gpio . input . assert_called_with ( 1 )