Skip to content

Commit

Permalink
Add failing test for bucket versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
John Lynn committed Feb 22, 2015
1 parent 01c47b6 commit 19d12d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_s3/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ def test_s3_server_bucket_create():
res.data.should.equal(b"test value")


def test_s3_server_bucket_versioning():
backend = server.create_backend_app("s3")
test_client = backend.test_client()

# Just enough XML to enable versioning
body = '<Status>Enabled</Status>'
res = test_client.put('/?versioning', 'http://foobaz.localhost:5000', data=body)
res.status_code.should.equal(200)


def test_s3_server_post_to_bucket():
backend = server.create_backend_app("s3")
test_client = backend.test_client()
Expand Down

0 comments on commit 19d12d3

Please sign in to comment.