'The changes passed to ``sequentially`` are run in order by
``run_state_changes``.'

def test_in_order(self):

    not_done = Deferred()
    subchanges = [ControllableAction(result=not_done), ControllableAction(result=succeed(None))]
    change = sequentially(changes=subchanges)
    run_state_change(change, DEPLOYER, InMemoryStatePersister())
    called = [subchanges[0].called, subchanges[1].called]
    not_done.callback(None)
    called.append(subchanges[1].called)
    self.assertEqual(called, [True, False, True])
