コード例 #1
0
ファイル: test_formatting.py プロジェクト: chevah/pydoctor
def test_strsigargh():
    argspec = [['a', ['b','c']], None, None, ()]
    assert html.signature(argspec) == 'a, (b, c)'
コード例 #2
0
ファイル: test_formatting.py プロジェクト: chevah/pydoctor
def test_strsig():
    argspec = [['a', 'b', 'c'], None, None, (1,2)]
    assert html.signature(argspec) == "a, b=1, c=2"
コード例 #3
0
def test_strsigargh():
    argspec = [["a", ["b", "c"]], None, None, ()]
    assert html.signature(argspec) == "a, (b, c)"
コード例 #4
0
ファイル: test_formatting.py プロジェクト: chevah/pydoctor
def test_strsigvar():
    argspec = [['a', 'b', 'c'], 'args', 'kk', (1,2)]
    assert html.signature(argspec) == "a, *args, b=1, c=2, **kk"
コード例 #5
0
def test_strsigvar():
    argspec = [["a", "b", "c"], "args", "kk", (1, 2)]
    assert html.signature(argspec) == "a, *args, b=1, c=2, **kk"
コード例 #6
0
def test_strsig():
    argspec = [["a", "b", "c"], None, None, (1, 2)]
    assert html.signature(argspec) == "a, b=1, c=2"
コード例 #7
0
def test_strsigargh():
    argspec = [['a', ['b', 'c']], None, None, ()]
    assert html.signature(argspec) == 'a, (b, c)'
コード例 #8
0
def test_strsigvar():
    argspec = [['a', 'b', 'c'], 'args', 'kk', (1, 2)]
    assert html.signature(argspec) == "a, *args, b=1, c=2, **kk"
コード例 #9
0
def test_strsig():
    argspec = [['a', 'b', 'c'], None, None, (1, 2)]
    assert html.signature(argspec) == "a, b=1, c=2"