2 Commits

Author SHA1 Message Date
Maru Newby
1f3557af59 Switch keystone.test.TestCase to use unittest2
* unittest2 is already a test dependency, and has a large
   number of improvements over unittest.  The switch suggested
   removing TestCase assertions that already existed in unittest2's
   version and updating all subclasses to use the unittest2
   equivalents.

Change-Id: I024134ae7cade3b4951c7508c1ea50070762720f
2012-03-27 13:55:14 -07:00
Jay Pipes
193374af38 Fixes LP #954089 - Service list templated catalog
* Adds missing test cases for the TemplatedCatalog
* Adds a base CatalogTest that different backends
  can use
* Updates kvs.Catalog to raise ServiceNotFound where
  appropriate
* Updates the tests.test_keystoneclient_sql to actually
  test the SQL catalog backend
* Removes old test for incorrect endpoints listing
* Removes the keystone.catalog.core.Driver.service_exists
  method since it was only implemented in the SQL driver
  and wasn't required now that get_service and delete_service
  properly raise ServiceNotFound exception.

Change-Id: I35690cc147e56007be27bacf94eeff360e727e5d
2012-03-19 12:08:30 -04:00