swift/test/unit/container
Chmouel Boudjnah d3bd30da41 Fix sync test when localhost on port 80 is binded
- When localhost:80 was binding the tests was trying to connect into it.
- To test you can simply run sudo python -m SimpleHTTPServer 80 which
  should show :

  1.0.0.127.in-addr.arpa - - [06/Aug/2013 14:10:42] code 501, message Unsupported method ('DELETE')
  1.0.0.127.in-addr.arpa - - [06/Aug/2013 14:10:42] "DELETE /a/c/o HTTP/1.1" 501 -

  (the test was passing since 501 would raise ClientException).
  mock delete_object in the fourth test to fix that
- Refactor the code to use mock.patch as well.

Closes-Bug: 1208802
Change-Id: I5ddd4ac3a97879f51cf5883fcfc0fe0f0adaeff6
2013-09-11 15:49:48 -04:00
..
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
test_auditor.py Add unit test for account/auditor.py 2013-08-15 12:32:47 +08:00
test_backend.py Split backends off swift/common/db.py 2013-09-10 13:30:28 -06:00
test_replicator.py Fixed bug with container reclaim/report race 2012-06-03 03:23:51 +00:00
test_server.py Use Python 3.x compatible except construct 2013-09-07 10:50:54 +02:00
test_sync.py Fix sync test when localhost on port 80 is binded 2013-09-11 15:49:48 -04:00
test_updater.py Split backends off swift/common/db.py 2013-09-10 13:30:28 -06:00