hanges to allow test to work on python 2.6.*.

Change-Id: Ie0502662c712295fa6885fc2d06c106003036143
This commit is contained in:
Ziad Sawalha 2011-08-18 19:58:10 -05:00
parent 22d8c6a938
commit 00f79857dc
1 changed files with 3 additions and 2 deletions

View File

@ -21,8 +21,9 @@ class TestExtensions(common.KeystoneTestCase):
r = self.service_request(path='/extensions.xml')
self.assertTrue('xml' in r.getheader('Content-Type'))
content = r.xml
extension = content.find("*[@alias='RAX-KEY']")
self.assertIsNotNone(extension)
extension = content.find(
"{http://docs.openstack.org/common/api/v2.0}extension")
self.assertEqual(extension.get("alias"), "RAX-KEY")
if __name__ == '__main__':