#NEWLINE# def test_mime_type_file( self ) : #NEWLINE# #INDENT# with magic . Magic ( paths = [ 'tests/magic/python' ] , flags = magic . MAGIC_MIME_TYPE ) as m : #NEWLINE# #INDENT# id = m . id_filename ( 'setup.py' ) #NEWLINE# self . assertEqual ( id , 'text/x-python' )