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