'Ensure retrived actions are in order.'

def test_instance_actions_get_are_in_order(self):

    uuid1 = uuidsentinel.uuid1
    extra = {'created_at': timeutils.utcnow()}
    action_values = self._create_action_values(uuid1, extra=extra)
    action1 = db.action_start(self.ctxt, action_values)
    action_values['action'] = 'delete'
    action2 = db.action_start(self.ctxt, action_values)
    actions = db.actions_get(self.ctxt, uuid1)
    self.assertEqual(2, len(actions))
    self._assertEqualOrderedListOfObjects([action2, action1], actions)
