#NEWLINE# def test_cleanup( self ) : #NEWLINE# #INDENT# bbio_gpio = Mock ( ) #NEWLINE# adapter = GPIO . AdafruitBBIOAdapter ( adapter ) #NEWLINE# adapter . cleanup ( ) #NEWLINE# bbio_gpio . cleanup . assert_called ( )