Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.589 kB
import unittest
from boto.mturk.question import QuestionForm
from common import MTurkCommon
class TestHITCreation(MTurkCommon):
def testCallCreateHitWithOneQuestion(self):
create_hit_rs = self.conn.create_hit(
question=self.get_question(),
**self.get_hit_params()
)
def testCallCreateHitWithQuestionForm(self):
create_hit_rs = self.conn.create_hit(
questions=QuestionForm([self.get_question()]),
**self.get_hit_params()
)
if __name__ == '__main__':
unittest.main()
Jump to Line
Something went wrong with that request. Please try again.