From 982f7143546fca55be14f3ab1d42651ea5816500 Mon Sep 17 00:00:00 2001 From: Peter Krenesky Date: Fri, 3 Jun 2011 10:58:56 -0700 Subject: [PATCH] Tests: more dynamic id testing --- ganeti/tests/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ganeti/tests/cluster.py b/ganeti/tests/cluster.py index 796afb40..707378c8 100644 --- a/ganeti/tests/cluster.py +++ b/ganeti/tests/cluster.py @@ -1088,7 +1088,7 @@ class TestClusterViews(TestCase, ViewTestMixin, UserTestMixin): self.assertEqual(200, response.status_code) self.assertEquals('application/json', response['content-type']) self.assertEqual([], group.get_perms(cluster)) - self.assertEqual('"group_1"', response.content) + self.assertEqual('"group_%s"'%group.id, response.content) # quota should be deleted (and showing default) self.assertEqual(1, cluster.get_quota(group.organization)['default']) -- 2.11.4.GIT