def METHOD_NAME(attr, value, simulation_factory,
                                two_particle_snapshot_factory):
    """Test that RemoveDrift can get and set attributes while attached."""
    remove_drift = hoomd.update.RemoveDrift(trigger=hoomd.trigger.Periodic(10),
                                            reference_positions=[(0, 0, 1),
                                                                 (-1, 0, 1)])
    sim = simulation_factory(
        two_particle_snapshot_factory(particle_types=['A', 'B'], L=50))
    sim.operations.updaters.append(remove_drift)
    sim.run(0)
    setattr(remove_drift, attr, value)
    assert np.all(getattr(remove_drift, attr) == value)