#NEWLINE# @ mock . patch . object ( seamicro , '_get_server' , autospec = True ) #NEWLINE# def test__power_on_good( self , mock_get_server ) : #NEWLINE# #INDENT# mock_get_server . return_value = self . Server ( active = False ) #NEWLINE# pstate = seamicro . _power_on ( self . node ) #NEWLINE# self . assertEqual ( states . POWER_ON , pstate )