#NEWLINE# def test_get_result( self ) : #NEWLINE# #INDENT# 'test getting results from the Hub.' #NEWLINE# c = clientmod . Client ( profile = 'iptest' ) #NEWLINE# t = c . ids [ ( - 1 ) ] #NEWLINE# ar = c [ t ] . apply_async ( wait , 1 ) #NEWLINE# time . sleep ( 0.25 ) #NEWLINE# ahr = self . client . get_result ( ar . msg_ids ) #NEWLINE# self . assertTrue ( isinstance ( ahr , AsyncHubResult ) ) #NEWLINE# self . assertEquals ( ahr . get ( ) , ar . get ( ) ) #NEWLINE# ar2 = self . client . get_result ( ar . msg_ids ) #NEWLINE# self . assertFalse ( isinstance ( ar2 , AsyncHubResult ) ) #NEWLINE# c . close ( )