Skip to content

Commit

Permalink
finished up some testing for the oop object code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sasimpson committed Aug 15, 2011
1 parent be2b716 commit 59eefd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_client.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -147,5 +147,10 @@ def test_oop_access
container = swift.head_container('test_account_oop_1') container = swift.head_container('test_account_oop_1')
assert_equal('testing', container['x-container-meta-foo'], "post correctly set x-container-meta-foo") assert_equal('testing', container['x-container-meta-foo'], "post correctly set x-container-meta-foo")
(1..20).each {|n| swift.delete_container("test_account_oop_#{n}")} (1..20).each {|n| swift.delete_container("test_account_oop_#{n}")}
swift.put_container('test_object_oop')
@file.seek 0
swift.put_object('test_object_oop', 'test.txt', @file)
obj = swift.head_object('test_object_oop', 'test.txt')
assert_equal(@file.stat.size, obj['content-length'])
end end
end end

0 comments on commit 59eefd6

Please sign in to comment.