コード例 #1
0
 def test_create_answers_txt_select(self):
     request_factory = RequestFactory()
     my_request = request_factory.get("", {'slt_question_1': 'Answer slt_question_ 1'})
     try:
         application.create_answers(self.application, my_request)
     except Exception:
         self.fail("{0} raised ExceptionType unexpectedly!".format("test_create_answers_txt_select"))
コード例 #2
0
 def test_create_answers_txt_select(self):
     request_factory = RequestFactory()
     my_request = request_factory.get("", {'slt_question_1': 'Answer slt_question_ 1'})
     try:
         application.create_answers(self.application, my_request)
     except Exception:
         self.fail("{0} raised ExceptionType unexpectedly!".format("test_create_answers_txt_select"))
コード例 #3
0
 def test_create_answers_txt_checkbox(self):
     request_factory = RequestFactory()
     my_request = request_factory.get("", {'txt_answer_checkbox_1': 'Answer txt checkbox 1'})
     try:
         application.create_answers(self.application, my_request)
     except Exception:
         self.fail("{0} raised ExceptionType unexpectedly!".format("test_create_answers_txt_checkbox"))
コード例 #4
0
 def test_create_answers_txt_checkbox(self):
     request_factory = RequestFactory()
     my_request = request_factory.get("", {'txt_answer_checkbox_1': 'Answer txt checkbox 1'})
     try:
         application.create_answers(self.application, my_request)
     except Exception:
         self.fail("{0} raised ExceptionType unexpectedly!".format("test_create_answers_txt_checkbox"))