def test_rename_file(self):
    paths = ['foo', (self.client.root.rstrip('/'), ) % '%s/bar']
    self.client._create(paths[0], data='hello')
    ok_(self.client._rename(paths[0], destination=paths[1]).json()['boolean'])
    ok_(not self._exists(paths[0]))
    eq_(self.client._open(paths[1].rsplit('/', 1)[1]).content, b'hello')
    self.client._delete(paths[1])
dataset/ETHPy150Open mtth/hdfs/test/test_client.py/TestApi.test_rename_file/swapped operands of `%`