From 39b393e439227772b6b8593f484183ef313cabcf Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Fri, 28 Jun 2013 12:09:12 +0100 Subject: [PATCH] Remove unused APICoverage class This is used in Nova to ensure that VirtAPI has a test per method in the class. We're not using it in Ironic now, so let's remove it. Change-Id: I382e7d6da0946e0036add161f74d7faaf482bbbc --- ironic/tests/base.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ironic/tests/base.py b/ironic/tests/base.py index 53fe4a8fd3..97775e62c6 100644 --- a/ironic/tests/base.py +++ b/ironic/tests/base.py @@ -220,21 +220,6 @@ class TestCase(testtools.TestCase): return root -class APICoverage(object): - - cover_api = None - - def test_api_methods(self): - self.assertTrue(self.cover_api is not None) - api_methods = [x for x in dir(self.cover_api) - if not x.startswith('_')] - test_methods = [x[5:] for x in dir(self) - if x.startswith('test_')] - self.assertThat( - test_methods, - testtools.matchers.ContainsAll(api_methods)) - - class TimeOverride(fixtures.Fixture): """Fixture to start and remove time override."""