コード例 #1
0
 def test_generate_bucket_constraint(self):
     expected_string = (b'<CreateBucketConfiguration '
                        b'xmlns="http://s3.amazonaws.com/doc/2006-03-01/">'
                        b'<LocationConstraint>region</LocationConstraint>'
                        b'</CreateBucketConfiguration>')
     actual_string = xml_marshal_bucket_constraint('region')
     eq_(expected_string, actual_string)
コード例 #2
0
 def test_generate_bucket_constraint(self):
     expected_string = b'<CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">' \
                       b'<LocationConstraint>region</LocationConstraint></CreateBucketConfiguration>'
     actual_string = xml_marshal_bucket_constraint('region')
     eq_(expected_string, actual_string)