Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Unified Diff: third_party/gsutil/20110627/boto/boto/mturk/test/create_hit_with_qualifications.py

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/gsutil/20110627/boto/boto/mturk/test/create_hit_with_qualifications.py
diff --git a/third_party/gsutil/20110627/boto/boto/mturk/test/create_hit_with_qualifications.py b/third_party/gsutil/20110627/boto/boto/mturk/test/create_hit_with_qualifications.py
deleted file mode 100644
index 9ef2bc5cc33101af0ddcc7cb9245ffc8bd2b669b..0000000000000000000000000000000000000000
--- a/third_party/gsutil/20110627/boto/boto/mturk/test/create_hit_with_qualifications.py
+++ /dev/null
@@ -1,16 +0,0 @@
-from boto.mturk.connection import MTurkConnection
-from boto.mturk.question import ExternalQuestion
-from boto.mturk.qualification import Qualifications, PercentAssignmentsApprovedRequirement
-
-def test():
- q = ExternalQuestion(external_url="http://websort.net/s/F3481C", frame_height=800)
- conn = MTurkConnection(host='mechanicalturk.sandbox.amazonaws.com')
- keywords=['boto', 'test', 'doctest']
- qualifications = Qualifications()
- qualifications.add(PercentAssignmentsApprovedRequirement(comparator="GreaterThan", integer_value="95"))
- create_hit_rs = conn.create_hit(question=q, lifetime=60*65,max_assignments=2,title="Boto External Question Test", keywords=keywords,reward = 0.05, duration=60*6,approval_delay=60*60, annotation='An annotation from boto external question test', qualifications=qualifications)
- assert(create_hit_rs.status == True)
- print create_hit_rs.HITTypeId
-
-if __name__ == "__main__":
- test()

Powered by Google App Engine
This is Rietveld 408576698