Convert cinder utils tests to use mock
Convert cinder utils tests to use mock

Convert the tests using mox to use mock.  Also add several
new tests to increase overall test coverage.

Closes-bug: 1285905
Change-Id: Ic7ed128e860aec50f135a9fd8728b868b27640ba

Hybrid-Cloud/cinder,Nexenta/cinder,takeshineshiro/cinder,phenoxim/cinder,julianwang/cinder,j-griffith/cinder,j-griffith/cinder,CloudServer/cinder,duhzecca/cinder,apporc/cinder,JioCloud/cinder,winndows/cinder,hguemar/cinder,scality/cinder,Thingee/cinder,mahak/cinder,duhzecca/cinder,tlakshman26/cinder-https-changes,Thingee/cinder,nexusriot/cinder,scottdangelo/RemoveVolumeMangerLocks,rakeshmi/cinder,blueboxgroup/cinder,Thingee/cinder,NeCTAR-RC/cinder,phenoxim/cinder,eharney/cinder,Hybrid-Cloud/cinder,julianwang/cinder,petrutlucian94/cinder,Datera/cinder,tlakshman26/cinder-bug-fix-volume-conversion-full,bswartz/cinder,nikesh-mahalka/cinder,sasukeh/cinder,Paul-Ezell/cinder-1,sasukeh/cinder,leilihh/cinder,alex8866/cinder,NetApp/cinder,openstack/cinder,redhat-openstack/cinder,tlakshman26/cinder-new-branch,saeki-masaki/cinder,alex8866/cinder,potsmaster/cinder,tlakshman26/cinder-bug-fix-volume-conversion-full,scottdangelo/RemoveVolumeMangerLocks,nikesh-mahalka/cinder,Paul-Ezell/cinder-1,saeki-masaki/cinder,Nexenta/cinder,blueboxgroup/cinder,spring-week-topos/cinder-week,Datera/cinder,potsmaster/cinder,leilihh/cinder,cloudbase/cinder,manojhirway/ExistingImagesOnNFS,takeshineshiro/cinder,winndows/cinder,rakeshmi/cinder,tlakshman26/cinder-new-branch,dims/cinder,redhat-openstack/cinder,nexusriot/cinder,Akrog/cinder,spring-week-topos/cinder-week,Accelerite/cinder,eharney/cinder,Accelerite/cinder,abusse/cinder,hguemar/cinder,ge0rgi/cinder,NeCTAR-RC/cinder,github-borat/cinder,CloudServer/cinder,dims/cinder,openstack/cinder,abusse/cinder,cloudbase/cinder,tlakshman26/cinder-https-changes,scality/cinder,NetApp/cinder,petrutlucian94/cinder,bswartz/cinder,apporc/cinder,JioCloud/cinder,manojhirway/ExistingImagesOnNFS,Akrog/cinder,github-borat/cinder,mahak/cinder