#NEWLINE# def testParseProgramProducts( self ) : #NEWLINE# #INDENT# with open ( os . path . join ( self . datapath , 'program_products.rss' ) ) as f : #NEWLINE# #INDENT# recent = list ( get_programs_and_products ( f . read ( ) ) ) #NEWLINE# #UNINDENT# [ program ] = recent #NEWLINE# self . assertEqual ( Program , type ( program ) ) #NEWLINE# self . assertEqual ( 'HIV' , program . code ) #NEWLINE# self . assertEqual ( 'HIV' , program . name )