1 from sfa.util.enumeration import Enum
3 # recognized top level rspec elements
4 RSpecElements = Enum(NETWORK='NETWORK',
5 COMPONENT_MANAGER='COMPONENT_MANAGER',
14 def __init__(self, element_type, path):
15 if not element_type in RSpecElements:
16 raise InvalidRSpecElement(element_type)
17 self.type = element_type