'Test to make sure we correctly answer whether a user has been verified.'

def test_user_is_verified(self):

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