'Test the bucket lookup method.'

def test_bucket_lookup(self):

    bucket = self._MakeBucket()
    k = bucket.new_key('foo/bar')
    phony_mimetype = 'application/x-boto-test'
    headers = {'Content-Type': phony_mimetype}
    k.set_contents_from_string('testdata', headers)
    k = bucket.lookup('foo/bar')
    self.assertIsInstance(k, bucket.key_class)
    self.assertEqual(k.content_type, phony_mimetype)
    k = bucket.lookup('notthere')
    self.assertIsNone(k)
