def testWithNodeRoot(self):
    lvp = vcluster.LocalizeVirtualPath

    virtpath1 = "%s/tmp/file" % vcluster._VIRT_PATH_PREFIX
    virtpath2 = vcluster._VIRT_PATH_PREFIX % "%s////tmp////file"

    for i in [virtpath1, virtpath2]:
      result = lvp(i, _noderoot="/tmp/node1.example.com")
      self.assertEqual(result, "/tmp/node1.example.com/tmp/file")
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.vcluster_unittest.py/TestLocalizeVirtualPath.testWithNodeRoot/swapped operands of `%`