~ubuntu-branches/ubuntu/wily/keystone/wily

« back to all changes in this revision

Viewing changes to .pc/fix-ubuntu-tests.patch/keystone/tests/test_wsgi.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-10-02 11:46:14 UTC
  • mfrom: (1.1.37)
  • Revision ID: package-import@ubuntu.com-20131002114614-pw4xkjdvowr9u34w
Tags: 1:2013.2~rc1-0ubuntu1
* New upstream version.
* debian/control:
  - Add versioned dependencies to python-pbr, python-dogpile.cache,
    python-oslo.config, python-webob, python-pam, python-sqlalchemy,
    python-testtools, and python-requests.
  - Added python-greenlet, python-requests, python-netifaces,
    and python-setuptools as a build dependency.
  - Dropped python-swift, python-unittest, python-d2to1,
    as a build dependency.
  - Bumped versioned depends for python-keystoneclient.
* debian/patches/disable-oauth2.patch: Refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
2
2
 
3
 
# Copyright 2012 OpenStack LLC
 
3
# Copyright 2012 OpenStack Foundation
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License"); you may
6
6
# not use this file except in compliance with the License. You may obtain
23
23
from keystone import exception
24
24
from keystone.openstack.common import gettextutils
25
25
from keystone.openstack.common import jsonutils
26
 
from keystone.tests import core as test
 
26
from keystone import tests
27
27
 
28
28
 
29
29
class FakeApp(wsgi.Application):
31
31
        return {'a': 'b'}
32
32
 
33
33
 
34
 
class BaseWSGITest(test.TestCase):
 
34
class BaseWSGITest(tests.TestCase):
35
35
    def setUp(self):
36
36
        self.app = FakeApp()
37
37
        super(BaseWSGITest, self).setUp()
186
186
        self.assertEquals("test", app.kwargs["testkey"])
187
187
 
188
188
 
189
 
class WSGIFunctionTest(test.TestCase):
 
189
class WSGIFunctionTest(tests.TestCase):
190
190
    def test_mask_password(self):
191
191
        message = ("test = 'password': 'aaaaaa', 'param1': 'value1', "
192
192
                   "\"new_password\": 'bbbbbb'")
219
219
                         'test = "param1" : "value"')
220
220
 
221
221
 
222
 
class LocalizedResponseTest(test.TestCase):
 
222
class LocalizedResponseTest(tests.TestCase):
223
223
    def setUp(self):
224
224
        super(LocalizedResponseTest, self).setUp()
225
 
        gettextutils._AVAILABLE_LANGUAGES = []
 
225
        gettextutils._AVAILABLE_LANGUAGES.clear()
226
226
 
227
227
    def tearDown(self):
228
 
        gettextutils._AVAILABLE_LANGUAGES = []
 
228
        gettextutils._AVAILABLE_LANGUAGES.clear()
229
229
        super(LocalizedResponseTest, self).tearDown()
230
230
 
231
231
    def _set_expected_languages(self, all_locales=[], avail_locales=None):