#NEWLINE# def test_htmlfile_slots( self ) : #NEWLINE# #INDENT# doc = '<nevow:slot name="foo">Hi there</nevow:slot>' #NEWLINE# temp = self . mktemp ( ) #NEWLINE# f = file ( temp , 'w' ) #NEWLINE# f . write ( doc ) #NEWLINE# f . close ( ) #NEWLINE# df = loaders . htmlfile ( temp ) #NEWLINE# self . assertEquals ( df . load ( ) [ 0 ] . children , [ 'Hi there' ] )