def testGetHvparamsForHypervisor(self):
    hvparams = [("a", "A"), ("b", "B"), ("c", "C")]
    ssconf_file_content = '\n'.join("%s=%s" % (key, value) for (key, value)
                                    in hvparams)
    self.sstore._ReadFile = mock.Mock(return_value=ssconf_file_content)
    result = self.sstore.GetHvparamsForHypervisor("foo")
    for (key, value) in hvparams:
      self.assertTrue(result in key)
      self.assertEqual(value, result[key])
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.ssconf_unittest.py/TestSimpleStore.testGetHvparamsForHypervisor/swapped operands of `in`