Merge "Drop unused test utility"

This commit is contained in:
Zuul 2025-02-11 05:46:50 +00:00 committed by Gerrit Code Review
commit 32bdf767b5
2 changed files with 1 additions and 15 deletions

View File

@ -123,20 +123,6 @@ class BaseTestCase(base.BaseTestCase):
0.0,
places=5)
def assertIsEmpty(self, obj):
try:
if len(obj) != 0:
self.fail("%s is not empty" % type(obj))
except (TypeError, AttributeError):
self.fail("%s doesn't have length" % type(obj))
def assertIsNotEmpty(self, obj):
try:
if len(obj) == 0:
self.fail("%s is empty" % type(obj))
except (TypeError, AttributeError):
self.fail("%s doesn't have length" % type(obj))
@staticmethod
def path_get(project_file=None):
root = os.path.abspath(os.path.join(os.path.dirname(__file__),

View File

@ -265,5 +265,5 @@ class TestPartitioning(base.BaseTestCase):
self.assertTrue(coord._coordinator.is_started)
coord.join_group("123")
coord.stop()
self.assertIsEmpty(coord._groups)
self.assertEqual(0, len(coord._groups))
self.assertIsNone(coord._coordinator)