def test_is_python_file(self):

        # Extension
        a = self.write_file('a.py', '')
        self.assertTrue(commit_hook._is_python_file(a))

        # Empty
        a = self.write_file('b', '')
        self.assertFalse(commit_hook._is_python_file(a))

        # Shebang
        self.write_file('b', '#!/usr/bin/env python')
        self.assertTrue(commit_hook._is_python_file(a))
Deleting an instance of a model proxying a multi-table inherited
dataset/ETHPy150Open sebdah/git-pylint-commit-hook/tests.py/TestHook.test_is_python_file--crossover with--dataset/ETHPy150Open django/django/tests/proxy_model_inheritance/tests.py/MultiTableInheritanceProxyTest.test_model_subclass_proxy