]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Refactor cinder/tests/test_volume.py
authorJulia Varlamova <jvarlamova@mirantis.com>
Mon, 12 Aug 2013 08:49:25 +0000 (12:49 +0400)
committerJulia Varlamova <jvarlamova@mirantis.com>
Thu, 22 Aug 2013 07:31:24 +0000 (11:31 +0400)
commitc60d031cd818b3fe30021937dff5fa9156907b21
tree0144b2004f2b0ed641c52648d52563019074c20c
parentc8c91c59f665b33f0ec66c9d38aa1da6bfe19a58
Refactor cinder/tests/test_volume.py

Refactor test_volume.py to remove code duplication.
- remove iterant definition of the 'expected' dict from
'test_create_delete_volume' and 'test_create_delete_snapshot'
method;
- move 'test_copy_volume_to_image_status_available',
'test_copy_volume_to_image_status_use' and
'test_copy_volume_to_image_exception' methods to new class
 CopyVolumeToImageTestCase;
- move 'test_volume_get_active_by_window' and
'test_snapshot_get_active_by_window' to new class
GetActiveByWindowTestCase;
- create base class BaseVolumeTestCase for TestCase classes.
bp cinder-tests-improvement

Change-Id: I5d3644375d321e613418ea8e544557d33401ff77
cinder/tests/test_volume.py