def test_node_is_complex_field_false(): m = astroid.parse(test_doc_complex_field) attr = list(m.body[2].body[2].body[1].get_children())[0] r = utils.node_is_complex_field(attr) assert r is False
def _is_complex_field_compare(node): r = False _, right = node.ops[0] r = node_is_complex_field(right) return r
def _is_complex_field_subscript(node): attr = node.value r = node_is_complex_field(attr) return r
def _is_complex_field_for(node): attr = list(node.get_children())[1] r = node_is_complex_field(attr) return r