Don't use tuple parameters

Tuple parameters where removed from Py3K.

Partially-implements: py3k-support
Change-Id: Ibc57f5f3b25c240f48f5c1d9e54cd1d8e5972ea3
This commit is contained in:
Flavio Percoco 2013-12-05 01:23:30 +01:00
parent 304f94cbe5
commit 37199bcc6a
3 changed files with 7 additions and 3 deletions

View File

@ -69,7 +69,8 @@ class ClaimsBaseTest(base.TestBase):
self.assertEqual(self.srmock.status, falcon.HTTP_400)
@ddt.data((-1, -1), (59, 60), (60, 59), (60, 43201), (43201, 60))
def test_unacceptable_ttl_or_grace(self, (ttl, grace)):
def test_unacceptable_ttl_or_grace(self, ttl_grace):
ttl, grace = ttl_grace
self.simulate_post(self.claims_path, self.project_id,
body=json.dumps({'ttl': ttl, 'grace': grace}))

View File

@ -37,7 +37,9 @@ class TestWSGIMediaType(base.TestBase):
('GET', '/v1/queues/nonexistent/claims/0ad'),
('GET', '/v1/health'),
)
def test_json_only_endpoints(self, (method, endpoint)):
def test_json_only_endpoints(self, method_endpoint):
method, endpoint = method_endpoint
headers = {
'Client-ID': str(uuid.uuid4()),
'Accept': 'application/xml',

View File

@ -123,7 +123,8 @@ class QueueLifecycleBaseTest(base.TestBase):
@ddt.data((u'/v1/queues/non-ascii-n\u0153me', 'utf-8'),
(u'/v1/queues/non-ascii-n\xc4me', 'iso8859-1'))
def test_non_ascii_name(self, (uri, enc)):
def test_non_ascii_name(self, uri_enc):
uri, enc = uri_enc
if six.PY2:
uri = uri.encode(enc)