OLD | NEW |
(Empty) | |
| 1 import unittest |
| 2 import os |
| 3 from boto.mturk.question import QuestionForm |
| 4 |
| 5 from common import MTurkCommon |
| 6 |
| 7 class TestHITCreation(MTurkCommon): |
| 8 def testCallCreateHitWithOneQuestion(self): |
| 9 create_hit_rs = self.conn.create_hit( |
| 10 question=self.get_question(), |
| 11 **self.get_hit_params() |
| 12 ) |
| 13 |
| 14 def testCallCreateHitWithQuestionForm(self): |
| 15 create_hit_rs = self.conn.create_hit( |
| 16 questions=QuestionForm([self.get_question()]), |
| 17 **self.get_hit_params() |
| 18 ) |
| 19 |
| 20 if __name__ == '__main__': |
| 21 unittest.main() |
OLD | NEW |