'Set up tests'

def setUp(self):

    super(TestInstructorDashboard, self).setUp()
    self.course = CourseFactory.create(grading_policy={'GRADE_CUTOFFS': {'A': 0.75, 'B': 0.63, 'C': 0.57, 'D': 0.5}}, display_name='<script>alert("XSS")</script>')
    self.course_mode = CourseMode(course_id=self.course.id, mode_slug=CourseMode.DEFAULT_MODE_SLUG, mode_display_name=CourseMode.DEFAULT_MODE.name, min_price=40)
    self.course_mode.save()
    self.instructor = AdminFactory.create()
    self.client.login(username=self.instructor.username, password='test')
    self.url = reverse('instructor_dashboard', kwargs={'course_id': self.course.id.to_deprecated_string()})
