]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Simplify cxt test_create_export() unit test
authorAnish Bhatt <anish@chelsio.com>
Wed, 25 Feb 2015 00:14:35 +0000 (16:14 -0800)
committerAnish Bhatt <anish@chelsio.com>
Wed, 4 Mar 2015 23:54:52 +0000 (15:54 -0800)
commit382ed66aa6a671aaa08545e6a4ccad9b5037105e
tree8e2b7a105e7a5b68501a2e8874daadc018a847ec
parent931aaea52ad6762cca4ead94d94e13cc3047f08d
Simplify cxt test_create_export() unit test

Reduce the amount of mocking required by returning a chap tuple directly
by mocking _get_target_chap_auth() instead of mocking generate_username and
generate_password inside _get_target_chap_auth()

Change-Id: I1e6f6c0a538cf3f0be90f8f471522cfe60321a1d
cinder/tests/targets/test_cxt_driver.py