From 06c2417b091cb8faec0580fdbc304a661f4eaaa5 Mon Sep 17 00:00:00 2001 From: Alejandro Cabrera Date: Fri, 17 May 2013 08:06:43 -0400 Subject: [PATCH] fix(testing/base): rm getUniqueString. Not present outside of testtools. --- falcon/testing/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/falcon/testing/base.py b/falcon/testing/base.py index 79190bf..d0dbe83 100644 --- a/falcon/testing/base.py +++ b/falcon/testing/base.py @@ -15,6 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. """ +import itertools try: import testtools as unittest @@ -50,9 +51,10 @@ class TestBase(unittest.TestCase): """Initializer, unittest-style""" super(TestBase, self).setUp() + self._id = itertools.count(0) self.api = falcon.API() self.srmock = StartResponseMock() - self.test_route = '/' + self.getUniqueString() + self.test_route = '/{0}'.format(next(self._id)) before = getattr(self, 'before', None) if hasattr(before, '__call__'):