Skip to content

Commit

Permalink
Fixes keystone auth test failures in python 2.6.
Browse files Browse the repository at this point in the history
Fixes bug 909408.

Change-Id: I18f5bf43f390c8a69f49e5f038acb9dcd80ca502
  • Loading branch information
major committed Dec 28, 2011
1 parent 18625fb commit 00ac2c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Authors
Expand Up @@ -21,6 +21,7 @@ Justin Shepherd <jshepher@rackspace.com>
Ken Pepple <ken.pepple@gmail.com>
Kevin L. Mitchell <kevin.mitchell@rackspace.com>
Lorin Hochstein <lorin@isi.edu>
Major Hayden <major@mhtx.net>
Mark McLoughlin <markmc@redhat.com>
Matt Dietz <matt.dietz@rackspace.com>
Mike Lundy <mike@pistoncloud.com>
Expand Down
4 changes: 2 additions & 2 deletions glance/tests/unit/test_auth.py
Expand Up @@ -166,7 +166,7 @@ def fake_do_request(cls, url, method, headers=None, body=None):

for creds in good_creds:
plugin = auth.KeystoneStrategy(creds)
self.assertIsNone(plugin.authenticate())
self.assertTrue(plugin.authenticate() is None)

def test_v2_auth(self):
"""Test v2 auth code paths"""
Expand Down Expand Up @@ -267,4 +267,4 @@ def fake_do_request(cls, url, method, headers=None, body=None):

for creds in good_creds:
plugin = auth.KeystoneStrategy(creds)
self.assertIsNone(plugin.authenticate())
self.assertTrue(plugin.authenticate() is None)

0 comments on commit 00ac2c7

Please sign in to comment.