]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Small refactoring in test_admin_actions.py
authorYuriy Nesenenko <ynesenenko@mirantis.com>
Fri, 4 Dec 2015 14:40:39 +0000 (16:40 +0200)
committerYuriy Nesenenko <ynesenenko@mirantis.com>
Thu, 17 Dec 2015 10:01:31 +0000 (10:01 +0000)
commit2d10d8a38d64a7e0b237236acf8aaeaf515f1395
treea6609211c8e9a5efa2ab53ea4222a7f65dfce09d
parent0acf5ab4aacb991f5ca9d2f1cafc16e2896bef39
Small refactoring in test_admin_actions.py

This patch splits tests to reduce duplication code. Also it adds the
method tearDown(). This method will only be called if the setUp()
succeeds, regardless of the outcome of the test method.

Change-Id: I8df68f2cd4331cb7f4993d864417a045908888db
cinder/tests/unit/api/contrib/test_admin_actions.py