def METHOD_NAME(self):
    obj = ClassFactory.enumeration(2)
    self.assertTrue(obj.is_enumeration)
    obj.attrs.append(AttrFactory.element())
    self.assertFalse(obj.is_enumeration)
    obj.attrs.clear()
    self.assertFalse(obj.is_enumeration)