コード例 #1
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet48():
    assert setDLC(48) == 48
コード例 #2
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet49():
    assert setDLC(49) == 64
コード例 #3
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet32():
    assert setDLC(32) == 32
コード例 #4
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet33():
    assert setDLC(33) == 48
コード例 #5
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet8():
    assert setDLC(8) == 8
コード例 #6
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet25():
    assert setDLC(25) == 32
コード例 #7
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet20():
    assert setDLC(20) == 20
コード例 #8
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet128():
    with pytest.raises(ValueError):
        setDLC(128)
コード例 #9
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet16():
    assert setDLC(16) == 16
コード例 #10
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet17():
    assert setDLC(17) == 20
コード例 #11
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet13():
    assert setDLC(13) == 16
コード例 #12
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet12():
    assert setDLC(12) == 12
コード例 #13
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet9():
    assert setDLC(9) == 12
コード例 #14
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet0():
    assert setDLC(0) == 0
コード例 #15
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet23():
    assert setDLC(23) == 24
コード例 #16
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet64():
    assert setDLC(64) == 64
コード例 #17
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet24():
    assert setDLC(24) == 24
コード例 #18
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testNegative():
    with pytest.raises(ValueError):
        setDLC(-1)
コード例 #19
0
ファイル: test_can.py プロジェクト: George117/pyxcp
def testSet4():
    assert setDLC(4) == 4