#NEWLINE# def test_target_info( self ) : #NEWLINE# #INDENT# target = ArchiveTarget ( name = 'neon-archive' ) #NEWLINE# target . save ( ) #NEWLINE# job = ArchiveJob ( ) #NEWLINE# job . target_addons . append ( job ) #NEWLINE# result = job . target_info ( ) #NEWLINE# assert_equal ( len ( result ) , 1 ) #NEWLINE# item = result [ 0 ] #NEWLINE# assert_equal ( item [ 'name' ] , target . name ) #NEWLINE# assert_equal ( item [ 'status' ] , target . status ) #NEWLINE# assert_equal ( item [ 'stat_result' ] , target . stat_result ) #NEWLINE# assert_equal ( item [ 'errors' ] , target . errors )