From 44c55a52cfadeef276138ddd521a9cb39361dc2f Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Mon, 13 Mar 2017 16:44:51 -0400 Subject: [PATCH] Remove AllocatorTestCase and RoundRobinTestCase This is dead code. Change-Id: I3cf6d859e867dbf8c448b4ea4afe4948555a1cef --- nodepool/tests/__init__.py | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/nodepool/tests/__init__.py b/nodepool/tests/__init__.py index 3d8cb6d2a..ee4b2bd67 100644 --- a/nodepool/tests/__init__.py +++ b/nodepool/tests/__init__.py @@ -198,35 +198,6 @@ class BaseTestCase(testtools.TestCase): time.sleep(0.1) -class AllocatorTestCase(object): - def setUp(self): - super(AllocatorTestCase, self).setUp() - self.agt = [] - - def test_allocator(self): - for i, amount in enumerate(self.results): - print self.agt[i] - for i, amount in enumerate(self.results): - self.assertEqual(self.agt[i].amount, amount, - 'Error at pos %d, ' - 'expected %s and got %s' % (i, self.results, - [x.amount - for x in self.agt])) - - -class RoundRobinTestCase(object): - def setUp(self): - super(RoundRobinTestCase, self).setUp() - self.allocations = [] - - def test_allocator(self): - for i, label in enumerate(self.results): - self.assertEqual(self.results[i], self.allocations[i], - 'Error at pos %d, ' - 'expected %s and got %s' % (i, self.results, - self.allocations)) - - class BuilderFixture(fixtures.Fixture): def __init__(self, configfile, cleanup_interval): super(BuilderFixture, self).__init__()