def test_incorrect():
    try:
        verify("A123456789")
        verify("asdasd")
        verify("")
    except ValueError:
        _pass = False
    assert _pass == False
    
def test_invalid():
    assert verify("AY987654A") == False
    assert verify("C1234567") == False
def test_valid():
    assert verify("C1234569") == True
    assert verify("G123456A") == True
def test_cal_correct():
    hkid1 = "C123456"
    hkid2 = "S455585"
    assert verify(hkid1 + calculate(hkid1)) == True
    assert verify(hkid2 + calculate(hkid2)) == True
def test_invalid():
    assert not verify("AY987654A")
    assert not verify("C1234567")
def test_incorrect():
    with pytest.raises(ValueError):
        verify("A123456789")
        verify("asdasd")
        verify("")