Lines Matching refs:file1
89 file1 = os.path.join(tdir1, 'testfile1.py')
91 _touch_files([file1, file2])
95 [file1, file2], recursive=False, exclude=None), [file1, file2])
98 [file1, file2], recursive=True, exclude=None), [file1, file2])
103 file1 = os.path.join(tdir1, 'testfile1.py')
105 _touch_files([file1, file2])
261 file1 = os.path.join(self.test_tmpdir, 'testfile1.py')
262 self.assertTrue(file_resources.IsPythonFile(file1))
265 file1 = os.path.join(self.test_tmpdir, 'testfile1')
266 self.assertFalse(file_resources.IsPythonFile(file1))
271 file1 = os.path.join(self.test_tmpdir, 'testfile1')
272 with open(file1, 'w') as f:
274 self.assertTrue(file_resources.IsPythonFile(file1))
279 self.assertTrue(file_resources.IsPythonFile(file1))
282 file1 = os.path.join(self.test_tmpdir, 'testfile1')
283 with py3compat.open_with_encoding(file1, mode='w', encoding='latin-1') as f:
285 self.assertTrue(file_resources.IsPythonFile(file1))
288 file1 = os.path.join(self.test_tmpdir, 'testfile1')
289 with open(file1, 'w') as f:
292 self.assertFalse(file_resources.IsPythonFile(file1))