~ttx/glance/cactus-final-version

« back to all changes in this revision

Viewing changes to tests/unit/test_swift_store.py

  • Committer: Tarmac
  • Author(s): Rick Harris
  • Date: 2011-03-09 22:17:06 UTC
  • mfrom: (85.1.3 glance)
  • Revision ID: tarmac-20110309221706-1zzxqy70e2qtaput
Don't require swift module for unit-tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
        Test that trying to delete a swift that doesn't exist
295
295
        raises an error
296
296
        """
297
 
        url_pieces = urlparse.urlparse("swift://user:key@auth_address/noexist")
 
297
        url_pieces = urlparse.urlparse(
 
298
            "swift://user:key@auth_address/noexist")
298
299
        self.assertRaises(exception.NotFound,
299
300
                          SwiftBackend.delete,
300
301
                          url_pieces)