#NEWLINE# def test_extname_from_file( ) : #NEWLINE# #INDENT# _filename = 'test' #NEWLINE# _ext = '.txt' #NEWLINE# _file = ( '%s%s' % ( _filename , _ext ) ) #NEWLINE# _extname = fs . extname ( _filename ) #NEWLINE# assert ( _extname == _ext )