| 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 | 4 >>> from boto.mturk.question import Question, QuestionContent, AnswerSpecificati
on, FreeTextAnswer |
| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 >>> qid, text = answer.fields[0] | 121 >>> qid, text = answer.fields[0] |
| 122 | 122 |
| 123 >>> text # doctest: +ELLIPSIS | 123 >>> text # doctest: +ELLIPSIS |
| 124 u'...' | 124 u'...' |
| 125 | 125 |
| 126 # question identifier should be a unicode string | 126 # question identifier should be a unicode string |
| 127 >>> qid # doctest: +ELLIPSIS | 127 >>> qid # doctest: +ELLIPSIS |
| 128 u'...' | 128 u'...' |
| 129 | 129 |
| OLD | NEW |