Refactor test_user_update

test_user_update looks a little messy and not easy to
distinguish the test steps from the continuous lines,
so this is to refactor it to make it more readable.

Change-Id: Ic7847161c4acfb83aa4c28341aa1ea97cf8a711d
1 file changed