#NEWLINE# def test_get_host_uptime( self ) : #NEWLINE# #INDENT# host_name = 'fake-host' #NEWLINE# host_uptime = ' 08:32:11 up 93 days, 18:25, 12 users,  load average: 0.20, 0.12, 0.14' #NEWLINE# self . mox . StubOutWithMock ( self . tgt_host_api , 'get_host_uptime' ) #NEWLINE# self . tgt_host_api . get_host_uptime ( self . ctxt , host_name ) . AndReturn ( host_uptime ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# response = self . src_msg_runner . get_host_uptime ( self . ctxt , self . tgt_cell_name , host_name ) #NEWLINE# expected_host_uptime = response . value_or_raise ( ) #NEWLINE# self . assertEqual ( host_uptime , expected_host_uptime )