def test(self):
    self.assertEqual(vcluster.EnvironmentForHost("host.example.com",
                                                 _basedir=None),
                     {})
    for i in ["host.example.com", "other.example.com"]:
      self.assertEqual(vcluster.EnvironmentForHost(i, _basedir="/tmp"), {
        vcluster._ROOTDIR_ENVNAME: i % "/tmp/%s",
        vcluster._HOSTNAME_ENVNAME: i,
        })
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.vcluster_unittest.py/TestEnvironmentForHost.test/swapped operands of `%`