#NEWLINE# def testFinishDatetime( self ) : #NEWLINE# #INDENT# from datetime import datetime #NEWLINE# from time import time #NEWLINE# now = time ( ) #NEWLINE# self . api . enqueue ( 'GET FILETRANSFER 1234 FINISHTIME' , ( 'FILETRANSFER 1234 FINISHTIME %f' % now ) ) #NEWLINE# t = self . obj . FinishDatetime #NEWLINE# self . assertInstance ( t , datetime ) #NEWLINE# self . assertEqual ( t , datetime . fromtimestamp ( now ) ) #NEWLINE# self . failUnless ( self . api . is_empty ( ) )