#NEWLINE# def test_turn_off( self ) : #NEWLINE# #INDENT# 'Test turn_off method.' #NEWLINE# runs = [ ] #NEWLINE# self . hass . services . register ( 'light' , SERVICE_TURN_OFF , ( lambda x : runs . append ( 1 ) ) ) #NEWLINE# comps . turn_off ( self . hass , 'light.Bowl' ) #NEWLINE# self . hass . pool . block_till_done ( ) #NEWLINE# self . assertEqual ( 1 , len ( runs ) )