def test_splitkey_invalid(testdir, mock_testclass): with pytest.raises(AttributeError): s.splitkey('POLR2A')
def test_splitkey_2(testdir, mock_testclass): splitkey = s.splitkey('POLR2A-350-680') assert splitkey == 350
def test_splitkey_noend(testdir, mock_testclass): with pytest.raises(AttributeError): s.splitkey('POLR2A-350')
def test_splitkey(testdir, mock_testclass): splitkey = s.splitkey('POLR2A-120-150') assert splitkey == 120