import nose import verify def test_verify_sin_correct(): assert verify.verify_sin('046-454-286') == True,\ 'All digits in the sin are correct as is the checksum.' def test_verify_sin_incorrect(): assert verify.verify_sin('064-454-286') == False,\ 'The digits in the sin are incorrect.' def test_verify_sin_no_dashes(): assert verify.verify_sin('046454286') == True,\ 'The sin was entered without dashes.' def test_verify_sin_wrong_length(): assert verify.verify_sin('04-454-286') == False,\ 'The sin entered was not of the correct length.' def test_verify_sin_wrong_type(): assert verify.verify_sin(123456782) == False,\ 'The sin entered was not in string format.' nose.runmodule()