#NEWLINE# def test_generator_to_genbank( self ) : #NEWLINE# #INDENT# ( seq , md , pmd , constructor ) = self . single #NEWLINE# obj = constructor ( seq , obj , pmd ) #NEWLINE# fh = io . StringIO ( ) #NEWLINE# _generator_to_genbank ( [ obj ] , fh ) #NEWLINE# obs = fh . getvalue ( ) #NEWLINE# fh . close ( ) #NEWLINE# with io . open ( self . single_lower_fp ) as fh : #NEWLINE# #INDENT# exp = fh . read ( ) #NEWLINE# #UNINDENT# self . assertEqual ( obs , exp )