'Test that a fake value is set for field \'photo_id_key\' of user\'s
initial verification when the feature flag \'AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING\'
is enabled.'

@mock.patch.dict(settings.FEATURES, {'AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING': True})
def test_submission_while_testing_flag_is_true(self):

    user = UserFactory.create()
    attempt = SoftwareSecurePhotoVerification(user=user)
    user.profile.name = 'test-user'
    attempt.upload_photo_id_image('Image    data')
    attempt.mark_ready()
    attempt.submit()
    self.assertEqual(attempt.photo_id_key, 'fake-photo-id-key')
