From 6c656b7ab9b6f9648600551a3df5a862e50b75fa Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Thu, 17 Nov 2016 08:26:13 +0100 Subject: [PATCH] Remove useless code Change-Id: If60d8ae8f6f15ccee58f2f28b9a4eebe74296ff8 --- ceilometer/tests/unit/compute/pollsters/test_cpu.py | 9 --------- ceilometer/tests/unit/compute/pollsters/test_memory.py | 9 --------- 2 files changed, 18 deletions(-) diff --git a/ceilometer/tests/unit/compute/pollsters/test_cpu.py b/ceilometer/tests/unit/compute/pollsters/test_cpu.py index ebd2566333..ebd577f9a4 100644 --- a/ceilometer/tests/unit/compute/pollsters/test_cpu.py +++ b/ceilometer/tests/unit/compute/pollsters/test_cpu.py @@ -26,9 +26,6 @@ from ceilometer.tests.unit.compute.pollsters import base class TestCPUPollster(base.TestPollsterBase): - def setUp(self): - super(TestCPUPollster, self).setUp() - @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock()) def test_get_samples(self): next_value = iter(( @@ -77,9 +74,6 @@ class TestCPUPollster(base.TestPollsterBase): class TestCPUUtilPollster(base.TestPollsterBase): - def setUp(self): - super(TestCPUUtilPollster, self).setUp() - @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock()) def test_get_samples(self): next_value = iter(( @@ -110,9 +104,6 @@ class TestCPUUtilPollster(base.TestPollsterBase): class TestCPUL3CachePollster(base.TestPollsterBase): - def setUp(self): - super(TestCPUL3CachePollster, self).setUp() - @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock()) def test_get_samples(self): next_value = iter(( diff --git a/ceilometer/tests/unit/compute/pollsters/test_memory.py b/ceilometer/tests/unit/compute/pollsters/test_memory.py index ec31ec1397..63b8ae51bd 100644 --- a/ceilometer/tests/unit/compute/pollsters/test_memory.py +++ b/ceilometer/tests/unit/compute/pollsters/test_memory.py @@ -24,9 +24,6 @@ from ceilometer.tests.unit.compute.pollsters import base class TestMemoryPollster(base.TestPollsterBase): - def setUp(self): - super(TestMemoryPollster, self).setUp() - @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock()) def test_get_samples(self): next_value = iter(( @@ -88,9 +85,6 @@ class TestMemoryPollster(base.TestPollsterBase): class TestResidentMemoryPollster(base.TestPollsterBase): - def setUp(self): - super(TestResidentMemoryPollster, self).setUp() - @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock()) def test_get_samples(self): next_value = iter(( @@ -136,9 +130,6 @@ class TestResidentMemoryPollster(base.TestPollsterBase): class TestMemoryBandwidthPollster(base.TestPollsterBase): - def setUp(self): - super(TestMemoryBandwidthPollster, self).setUp() - @mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock()) def test_get_samples(self): next_value = iter((