MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / hasText

Method hasText

suds/sax/element.py:274–281  ·  view source on GitHub ↗

Get whether the element has I{text} and that it is not an empty (zero length) string. @return: True when has I{text}. @rtype: boolean

(self)

Source from the content-addressed store, hash-verified

272 return self
273
274 def hasText(self):
275 """
276 Get whether the element has I{text} and that it is not an empty
277 (zero length) string.
278 @return: True when has I{text}.
279 @rtype: boolean
280 """
281 return self.text is not None and len(self.text)
282
283 def namespace(self):
284 """

Callers 6

getTextMethod · 0.95
trimMethod · 0.95
strMethod · 0.95
plainMethod · 0.95
postprocessMethod · 0.45
append_textMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected