'Enumeration should refuse item modification.'

def test_modify_item(self):

    for (enumtype, params) in self.valid_values.items():
        for (i, key) in enumerate(params['keys']):
            self.failUnlessRaises(enum.EnumImmutableError, enumtype.__setitem__, i, 'bogus')
