| OLD | NEW |
| 1 >>> import uuid | 1 >>> import uuid |
| 2 >>> import datetime | 2 >>> import datetime |
| 3 >>> from _init_environment import MTurkConnection, mturk_host | 3 >>> from _init_environment import MTurkConnection, mturk_host |
| 4 >>> from boto.mturk.question import Question, QuestionContent, AnswerSpecificati
on, FreeTextAnswer, RegExConstraint | 4 >>> from boto.mturk.question import Question, QuestionContent, AnswerSpecificati
on, FreeTextAnswer, RegExConstraint |
| 5 | 5 |
| 6 >>> conn = MTurkConnection(host=mturk_host) | 6 >>> conn = MTurkConnection(host=mturk_host) |
| 7 | 7 |
| 8 # create content for a question | 8 # create content for a question |
| 9 >>> qn_content = QuestionContent() | 9 >>> qn_content = QuestionContent() |
| 10 >>> qn_content.append_field('Title', 'Boto no hit type question content') | 10 >>> qn_content.append_field('Title', 'Boto no hit type question content') |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 # title is the HIT type description | 91 # title is the HIT type description |
| 92 >>> hit.Description | 92 >>> hit.Description |
| 93 u'Boto create_hit description' | 93 u'Boto create_hit description' |
| 94 | 94 |
| 95 # annotation is correct | 95 # annotation is correct |
| 96 >>> hit.RequesterAnnotation | 96 >>> hit.RequesterAnnotation |
| 97 u'An annotation from boto create_hit test' | 97 u'An annotation from boto create_hit test' |
| 98 | 98 |
| 99 >>> hit.HITReviewStatus | 99 >>> hit.HITReviewStatus |
| 100 u'NotReviewed' | 100 u'NotReviewed' |
| OLD | NEW |