Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __iter__(self):
return super(Properties, self).iterchildren(Property)
def __init__(self, name=None, value=None):
super(Property, self).__init__(self._tag)
self.name = name
self.value = value
def __init__(self, name=None, value=None):
super(Property, self).__init__(self._tag)
self.name = name
self.value = value
def add_property(self, name, value):
"""Adds a property to the testsuite/testcase.
See :class:`Property` and :class:`Properties`
"""
props = self.child(Properties)
if props is None:
props = Properties()
self.append(props)
prop = Property(name, value)
props.add_property(prop)
def add_property(self, name, value):
"""Adds a property to the testsuite.
See :class:`Property` and :class:`Properties`
"""
props = self.child(Properties)
if props is None:
props = Properties()
self.append(props)
prop = Property(name, value)
props.add_property(prop)
def __iter__(self):
return super(Properties, self).iterchildren(Property)