def testGetNodesVmCapable(self):
    def _ToBool(x):
      return x == "True"

    vm_capable = [("node1.example.com", "True"), ("node2.example.com", "False")]
    ssconf_file_content = '\n'.join("%s=%s" % (key, value) for (key, value)
                                    in vm_capable)
    self.sstore._ReadFile = mock.Mock(return_value=ssconf_file_content)
    result = self.sstore.GetNodesVmCapable()
    for (key, value) in vm_capable:
      self.assertTrue(isinstance(key, str))
      self.assertTrue(result in key)
      self.assertTrue(isinstance(result[key], bool))
      self.assertEqual(_ToBool(value), result[key])
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.ssconf_unittest.py/TestSimpleStore.testGetNodesVmCapable/swapped operands of `in`