def METHOD_NAME(self, job_factory):
    # test basic decryption
    job = job_factory()
    job.start_args = json.dumps({'foo': 'bar'})
    job.start_args = encrypt_field(job, field_name='start_args')
    job.save()
    assert job.start_args.startswith(PREFIX)
    # re-key the start_args
    new_key = regenerate_secret_key.Command().handle()
    new_job = models.Job.objects.get(pk=job.pk)
    assert new_job.start_args != job.start_args
    # verify that the old SECRET_KEY doesn't work
    with pytest.raises(InvalidToken):
        decrypt_field(new_job, field_name='start_args')
    # verify that the new SECRET_KEY *does* work
    with override_settings(SECRET_KEY=new_key):
        assert json.loads(decrypt_field(new_job, field_name='start_args')) == {'foo': 'bar'}