def __init__(self, date_format=None, locale=None): TemplateAttribNode.__init__(self) if date_format is None: self._format = "%c" else: self._format = date_format self._locale = locale
def __init__(self, date_format=None, locale=None): TemplateAttribNode.__init__(self) if date_format is None: self._format = TemplateWordNode("%c") else: self._format = TemplateWordNode(date_format) self._locale = None if locale is not None: self._locale = TemplateWordNode(locale)
def __init__(self, index=1): TemplateAttribNode.__init__(self) self._index = index
def __init__(self): TemplateAttribNode.__init__(self) self.pairs = {}
def __init__(self, question=1, sentence=1): TemplateAttribNode.__init__(self) self._question = question self._sentence = sentence
def __init__(self, date_format=None): TemplateAttribNode.__init__(self) if date_format is None: self._format = "%c" else: self._format = date_format
def __init__(self): TemplateAttribNode.__init__(self) self._level = "debug" self._output = "logging"
def __init__(self): TemplateAttribNode.__init__(self) self._timeout = 0
def __init__(self): TemplateAttribNode.__init__(self) self._name = None self._attribs = {}
def __init__(self): TemplateAttribNode.__init__(self) self._timeout = TemplateWordNode("0")
def __init__(self, index=1): TemplateAttribNode.__init__(self) self._index = TemplateWordNode(str(index))
def __init__(self): TemplateAttribNode.__init__(self) self._level = "debug"
def __init__(self): TemplateAttribNode.__init__(self) self._level = TemplateWordNode("debug") self._output = TemplateWordNode("logging")
def test_node(self): attrib = TemplateAttribNode() self.assertIsNotNone(attrib) with self.assertRaises(Exception): attrib.set_attrib("Something", "Other")