~0x44/nova/bug838466

« back to all changes in this revision

Viewing changes to vendor/boto/boto/mturk/test/search_hits.doctest

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
>>> from boto.mturk.connection import MTurkConnection
 
2
>>> conn = MTurkConnection(host='mechanicalturk.sandbox.amazonaws.com')
 
3
 
 
4
# should have some HIT's returned by a search (but only if your account has existing HIT's)
 
5
>>> search_rs = conn.search_hits()
 
6
 
 
7
# this is a valid request
 
8
>>> search_rs.status
 
9
True
 
10
 
 
11
>>> len(search_rs) > 1
 
12
True
 
13
 
 
14
>>> search_rs # doctest: +ELLIPSIS
 
15
[<boto.mturk.connection.HIT instance at ...]
 
16