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