Clean unit tests in "benchmark.scenarios.lib.test_create_volume.py 25/47525/6
authorEmma Foley <emma.l.foley@intel.com>
Mon, 20 Nov 2017 15:20:49 +0000 (15:20 +0000)
committerEmma Foley <emma.l.foley@intel.com>
Mon, 22 Jan 2018 17:56:02 +0000 (17:56 +0000)
commitbedcb3c33d14bd4259c37bcbca8a49d757c8cef4
tree44db0d02e0b9f1cb65b1e1e599e2568945d65af1
parentd2c7cc4e9768ed003257a95c92cdb278d516761b
Clean unit tests in "benchmark.scenarios.lib.test_create_volume.py

* Use mock_object.assert_called_with instead of
    self.assertTrue(mock_object.called)
* Remove an unneeded if clause in CreateVolume
* Add individual tests for each method in CreateVolume

Change-Id: I54cc56434d316f059b3822879145e6a299866fcb
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
tests/unit/benchmark/scenarios/lib/test_create_volume.py
yardstick/benchmark/scenarios/lib/create_volume.py