Index: third_party/gsutil/boto/tests/mturk/search_hits.doctest |
diff --git a/third_party/gsutil/boto/tests/mturk/search_hits.doctest b/third_party/gsutil/boto/tests/mturk/search_hits.doctest |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a79bab714d5cb5b345a0e3b32667f63250f36720 |
--- /dev/null |
+++ b/third_party/gsutil/boto/tests/mturk/search_hits.doctest |
@@ -0,0 +1,16 @@ |
+>>> from _init_environment import MTurkConnection, mturk_host |
+>>> conn = MTurkConnection(host=mturk_host) |
+ |
+# should have some HIT's returned by a search (but only if your account has existing HIT's) |
+>>> search_rs = conn.search_hits() |
+ |
+# this is a valid request |
+>>> search_rs.status |
+True |
+ |
+>>> len(search_rs) > 1 |
+True |
+ |
+>>> search_rs # doctest: +ELLIPSIS |
+[<boto.mturk.connection.HIT instance at ...] |
+ |