Exemple #1
0
def test_strsigargh():
    argspec = [['a', ['b','c']], None, None, ()]
    assert html.signature(argspec) == 'a, (b, c)'
Exemple #2
0
def test_strsig():
    argspec = [['a', 'b', 'c'], None, None, (1,2)]
    assert html.signature(argspec) == "a, b=1, c=2"
Exemple #3
0
def test_strsigargh():
    argspec = [["a", ["b", "c"]], None, None, ()]
    assert html.signature(argspec) == "a, (b, c)"
Exemple #4
0
def test_strsigvar():
    argspec = [['a', 'b', 'c'], 'args', 'kk', (1,2)]
    assert html.signature(argspec) == "a, *args, b=1, c=2, **kk"
Exemple #5
0
def test_strsigvar():
    argspec = [["a", "b", "c"], "args", "kk", (1, 2)]
    assert html.signature(argspec) == "a, *args, b=1, c=2, **kk"
Exemple #6
0
def test_strsig():
    argspec = [["a", "b", "c"], None, None, (1, 2)]
    assert html.signature(argspec) == "a, b=1, c=2"
Exemple #7
0
def test_strsigargh():
    argspec = [['a', ['b', 'c']], None, None, ()]
    assert html.signature(argspec) == 'a, (b, c)'
Exemple #8
0
def test_strsigvar():
    argspec = [['a', 'b', 'c'], 'args', 'kk', (1, 2)]
    assert html.signature(argspec) == "a, *args, b=1, c=2, **kk"
Exemple #9
0
def test_strsig():
    argspec = [['a', 'b', 'c'], None, None, (1, 2)]
    assert html.signature(argspec) == "a, b=1, c=2"