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

Method bychoice

suds/bindings/document.py:149–160  ·  view source on GitHub ↗

The ancestry contains a @param ancestry: A list of ancestors. @type ancestry: list @return: True if contains @rtype: boolean

(self, ancestry)

Source from the content-addressed store, hash-verified

147 return result
148
149 def bychoice(self, ancestry):
150 """
151 The ancestry contains a <choice/>
152 @param ancestry: A list of ancestors.
153 @type ancestry: list
154 @return: True if contains <choice/>
155 @rtype: boolean
156 """
157 for x in ancestry:
158 if x.choice():
159 return True
160 return False

Callers 1

param_defsMethod · 0.95

Calls 1

choiceMethod · 0.45

Tested by

no test coverage detected