'Set up the test data used in the specific tests'

def setUp(self):

    super(SurveyViewsTests, self).setUp()
    self.client = Client()
    self.password = 'abc'
    self.student = UserFactory.create(username='student', email='student@test.com', password=self.password)
    self.test_survey_name = 'TestSurvey'
    self.test_form = '\n                                                <input    name="field1"    /><input    name="field2"    /><select    name="ddl"><option>1</option></select>\n                                                <textarea    name="textarea"    />\n                                '
    self.student_answers = OrderedDict({u'field1': u'value1', u'field2': u'value2', u'ddl': u'1', u'textarea': u'textarea'})
    self.course = CourseFactory.create(display_name='Test    Course', course_survey_required=True, course_survey_name=self.test_survey_name)
    self.survey = SurveyForm.create(self.test_survey_name, self.test_form)
    self.view_url = reverse('view_survey', args=[self.test_survey_name])
    self.postback_url = reverse('submit_answers', args=[self.test_survey_name])
    self.client.login(username=self.student.username, password=self.password)
