From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: a boto-works test for tabled? Date: Fri, 18 Dec 2009 13:45:38 -0500 Message-ID: <4B2BCDD2.4020802@garzik.org> References: <4B2B55FA.2070109@garzik.org> <4B2BA679.9020202@redhat.com> <20091218100928.1d4ce2d5@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=V8TFU9Pa2qSrLI+3ruvGYxzrExjRUYv66py3YcWlEzg=; b=XY+X5VL4FzZkEVk5m3ma/mSWJHgrdB4MZ4sMS4QGjXxjvyyI4cFPqvgMZyvAofyDBC hV+vAAXpvnviNFUA2CjwUaJn4QJ5r3MTMiKqvrtO7VsLnqCHWg4SMHsK0FiT4RezC1EH qBpHgShe/0s1ucksWjdh+uUMpM1GudwYjSbk8= In-Reply-To: <20091218100928.1d4ce2d5@redhat.com> Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Pete Zaitcev Cc: Jeff Darcy , Project Hail On 12/18/2009 12:09 PM, Pete Zaitcev wrote: > Since I have no clue about Python, I had trouble making their standard > testing harness to work, so I just copied the test into a local file, > and appended an invocation like this: > > from boto.s3.connection import S3Connection > from boto.s3.connection import OrdinaryCallingFormat, SubdomainCallingFormat > from boto.exception import S3PermissionsError > > # class S3ConnectionTest (unittest.TestCase): > class S3ConnectionTest: > def test_1_basic(self): > c = S3Connection(aws_access_key_id="testuser", > aws_secret_access_key="testpass", > is_secure=False, > host="hitlain.zaitcev.lan", > debug=1, > calling_format=SubdomainCallingFormat()) > ...................... > > t = S3ConnectionTest() > t.test_1_basic() Neat. Does that return the desired exit status for our tests? Jeff