def test_rename_file_to_existing(self):
    p = ['foo', (self.client.root.rstrip('/'), ) % '%s/bar']
    self.client._create(p[0], data='hello')
    self.client._create(p[1], data='hi')
    try:
      ok_(not self.client._rename(p[0], destination=p[1]).json()['boolean'])
    finally:
      self.client._delete(p[0])
      self.client._delete(p[1])
dataset/ETHPy150Open mtth/hdfs/test/test_client.py/TestApi.test_rename_file_to_existing/swapped operands of `%`