Skip to content
Browse files

finished up some testing for the oop object code.

  • Loading branch information...
1 parent be2b716 commit 59eefd6ef51e618bd5b3868053fc47d597e9140f @sasimpson committed Aug 15, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/test_client.rb
View
5 tests/test_client.rb
@@ -147,5 +147,10 @@ def test_oop_access
container = swift.head_container('test_account_oop_1')
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}")}
+ 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

0 comments on commit 59eefd6

Please sign in to comment.
Something went wrong with that request. Please try again.