コード例 #1
0
def test_splitkey_invalid(testdir, mock_testclass):
    with pytest.raises(AttributeError):
        s.splitkey('POLR2A')
コード例 #2
0
def test_splitkey_2(testdir, mock_testclass):
    splitkey = s.splitkey('POLR2A-350-680')
    assert splitkey == 350
コード例 #3
0
def test_splitkey_noend(testdir, mock_testclass):
    with pytest.raises(AttributeError):
        s.splitkey('POLR2A-350')
コード例 #4
0
def test_splitkey(testdir, mock_testclass):
    splitkey = s.splitkey('POLR2A-120-150')
    assert splitkey == 120