

def test_open(self):
    f = self.target.open('r')
    file_content = f.read()
    self.close()
    self.assertEqual(file_content, 'hello')
    self.assertTrue(self.target.fs.exists(self.filepath))
    self.assertFalse(self.target.fs.isdir(self.filepath))

dataset/ETHPy150Open spotify/luigi/test/contrib/test_ssh.py TestRemoteTarget.test_open/VarMisuse@29/35 `f`->`self`