/boto-2.5.2/tests/mturk/create_hit_test.py
Python | 21 lines | 17 code | 4 blank | 0 comment | 1 complexity | 9cd69f4b67c4b0ec6443a5970af57952 MD5 | raw file
- import unittest
- import os
- 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()