From: Jenkins Date: Tue, 16 Jun 2015 04:10:51 +0000 (+0000) Subject: Merge "Targets tests: Clean up long lines" X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=bd3b029b60e3374257d31f3de3078babe2d0ab01;p=openstack-build%2Fcinder-build.git Merge "Targets tests: Clean up long lines" --- bd3b029b60e3374257d31f3de3078babe2d0ab01 diff --cc cinder/tests/unit/targets/test_cxt_driver.py index 6a7034e76,9a844ec3e..49c79edd0 --- a/cinder/tests/unit/targets/test_cxt_driver.py +++ b/cinder/tests/unit/targets/test_cxt_driver.py @@@ -50,11 -56,11 +56,11 @@@ class TestCxtAdmDriver(tf.TargetDriverF self.assertTrue(m_exec.called) def test_get_target_chap_auth(self): - tmp_file = StringIO.StringIO() + tmp_file = six.StringIO() tmp_file.write( 'target:\n' - ' TargetName=iqn.2010-10.org.openstack:volume-83c2e877-feed-46be-8435-77884fe55b45\n' # noqa - ' TargetDevice=/dev/stack-volumes-lvmdriver-1/volume-83c2e877-feed-46be-8435-77884fe55b45\n' # noqa + ' TargetName=iqn.2010-10.org.openstack:volume-%(id)s\n' + ' TargetDevice=/dev/%(vg)s/volume-%(id)s\n' ' PortalGroup=1@10.9.8.7:3260\n' ' AuthMethod=CHAP\n' ' Auth_CHAP_Policy=Oneway\n'