Merge very similar code in test_volume_readonly_update

There are very similar lines in test_volume_readonly_update which
test 'True' and 'False' cases respectively, so this is to merge
them to make code clean.

Change-Id: Iac779453d5e736fe3ec711fcfaf79e6365104962
1 file changed