'Determine whether we have to prompt this user to verify, or if they\'ve
already at least initiated a verification submission.'

def test_user_has_valid_or_pending(self):

    user = UserFactory.create()
    attempt = SoftwareSecurePhotoVerification(user=user)
    for status in ['created', 'ready', 'denied']:
        attempt.status = status
        attempt.save()
        assert_false(SoftwareSecurePhotoVerification.user_has_valid_or_pending(user), status)
    for status in ['submitted', 'must_retry', 'approved']:
        attempt.status = status
        attempt.save()
        assert_true(SoftwareSecurePhotoVerification.user_has_valid_or_pending(user), status)
