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.

(cherry picked from commit 00ac2c7)

Change-Id: I18f5bf43f390c8a69f49e5f038acb9dcd80ca502
  • Loading branch information
major authored and markmc committed Jan 6, 2012
1 parent 5d7bd21 commit ea52a01
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 @@ -19,6 +19,7 @@ Josh Kearney <josh@jk0.org>
Justin Shepherd <jshepher@rackspace.com>
Ken Pepple <ken.pepple@gmail.com>
Kevin L. Mitchell <kevin.mitchell@rackspace.com>
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 ea52a01

Please sign in to comment.