def test01_invalidDflt(self):

        colors = {'red': 4, 'green': 2, 'blue': 1}
        self.assertRaises(KeyError, self._createCol, colors, 'black')
Describing an enumerated column with an invalid default object.
dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_enum.py/CreateColTestCase.test01_invalidDflt