Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/t/x/txAWS-0.2.3/txaws/s3/tests/test_client.py   txAWS(Download)
    def test_get_canonicalized_resource(self):
        query = client.Query(action="PUT", bucket="images")
        result = query.get_canonicalized_resource()
        self.assertEquals(result, "/images/")
 
    def test_get_canonicalized_resource_with_object_name(self):
        query = client.Query(
            action="PUT", bucket="images", object_name="advicedog.jpg")
        result = query.get_canonicalized_resource()
    def test_get_canonicalized_resource_with_slashed_object_name(self):
        query = client.Query(
            action="PUT", bucket="images", object_name="/advicedog.jpg")
        result = query.get_canonicalized_resource()
        self.assertEquals(result, "/images/advicedog.jpg")