Return a setup() method call found in the ``elements`` or None.
(elements)
| 101 | |
| 102 | |
| 103 | def get_setup_call(elements): |
| 104 | """ |
| 105 | Return a setup() method call found in the ``elements`` or None. |
| 106 | """ |
| 107 | for element in get_body(elements): |
| 108 | if is_setup_call(element): |
| 109 | return element |
| 110 | elif isinstance(element, (ast.Assign,)): |
| 111 | if isinstance(element.value, ast.Call): |
| 112 | if is_setup_call(element.value): |
| 113 | return element.value |
| 114 | |
| 115 | |
| 116 | def node_to_value(node, body): |
no test coverage detected