From c8f496694c0e33e25b1e14d2686286cc89f003d6 Mon Sep 17 00:00:00 2001 From: Alexei Kornienko Date: Fri, 28 Feb 2014 15:19:10 +0200 Subject: [PATCH] Removed global state modification by api test This line caused 200 tests to fail in case of running tests with unittest runner: tox -e venv "python -m unittest discover -t . ceilometer/tests" Change-Id: Ib4586e31061de91cc56c0186fe057473616d1776 --- ceilometer/tests/api/v2/test_wsme_custom_type.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ceilometer/tests/api/v2/test_wsme_custom_type.py b/ceilometer/tests/api/v2/test_wsme_custom_type.py index 93979d042..2b2b83921 100644 --- a/ceilometer/tests/api/v2/test_wsme_custom_type.py +++ b/ceilometer/tests/api/v2/test_wsme_custom_type.py @@ -16,8 +16,6 @@ # License for the specific language governing permissions and limitations # under the License. -import mock -import pecan import wsme from ceilometer.api.controllers import v2 @@ -25,9 +23,6 @@ from ceilometer.openstack.common import test class TestWsmeCustomType(test.BaseTestCase): - def setUp(self): - super(TestWsmeCustomType, self).setUp() - pecan.response = mock.MagicMock() def test_advenum_default(self): class dummybase(wsme.types.Base):