#NEWLINE# def test_is_python_file( self ) : #NEWLINE# #INDENT# 'Test commit_hook._is_python_file' #NEWLINE# a = self . write_file ( 'a.py' , '' ) #NEWLINE# self . assertTrue ( commit_hook . _is_python_file ( a ) ) #NEWLINE# a = self . write_file ( 'b' , '' ) #NEWLINE# self . assertFalse ( commit_hook . _is_python_file ( a ) ) #NEWLINE# self . write_file ( 'b' , '#!/usr/bin/env python' ) #NEWLINE# self . assertTrue ( commit_hook . _is_python_file ( self ) )