

def test_file_read(self):
    path = os.path.join(self.temp, 'afile')
    open(path, 'w').close()

    @modifiers.annotate(afile=converters.file())
    def func(afile):
        with afile as f:
            self.assertEqual(f.name, path)
            self.assertEqual(f.mode, 'r')
        self.assertTrue(f.closed)
    (o, e) = self.crun(func, ['test', e])
    self.assertFalse(o.getvalue())
    self.assertFalse(e.getvalue())

dataset/ETHPy150Open epsy/clize/clize/tests/test_converters.py FileConverterTests.test_file_read/VarMisuse@114/135 `path`->`e`