def testUnknownType(self):
    for value in [None, 19410, "xyz"]:
      try:
        outils.ContainerToDicts(value)
      except __HOLE__, err:
        self.assertTrue(str(err).startswith("Unknown container type"))
      else:
        self.fail("Exception was not raised")
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.outils_unittest.py/TestContainerToDicts.testUnknownType