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

Method hasText

suds/sax/attribute.py:103–110  ·  view source on GitHub ↗

Get whether the attribute 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

101 return default
102
103 def hasText(self):
104 """
105 Get whether the attribute has I{text} and that it is not an empty
106 (zero length) string.
107 @return: True when has I{text}.
108 @rtype: boolean
109 """
110 return self.value is not None and len(self.value)
111
112 def namespace(self):
113 """

Callers 3

getValueMethod · 0.95
__str__Method · 0.95
__unicode__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected