#NEWLINE# def test_power_on( self , mock_get_client ) : #NEWLINE# #INDENT# mock_client = mock_get_client . return_value #NEWLINE# driver = snmp . _get_driver ( self . node ) #NEWLINE# mock_client . get . return_value = driver . value_power_on #NEWLINE# pstate = driver . power_on ( ) #NEWLINE# mock_client . set . assert_called_once_with ( driver . _snmp_oid ( ) , driver . value_power_on ) #NEWLINE# mock_client . get . assert_called_once_with ( driver . _snmp_oid ( ) ) #NEWLINE# self . assertEqual ( states . POWER_ON , pstate )