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