Example #1
0
def test_is_leaf_has_attr_with_list_of_primitives():
    assert astpretty._is_leaf(_to_module_body('global x, y')) is True
Example #2
0
def test_is_leaf_false(s):
    assert astpretty._is_leaf(_to_expr_value(s)) is False
Example #3
0
def test_is_leaf_true(s):
    assert astpretty._is_leaf(_to_expr_value(s)) is True