#NEWLINE# def test_requires_field_names( self ) : #NEWLINE# #INDENT# with pytest . raises ( ValueError ) as excinfo : #NEWLINE# #INDENT# index_name ( Author ) #NEWLINE# #UNINDENT# assert ( 'At least one field name required' in six . text_type ( self . value ) )