'setup course, user and request for tests'

def setUp(self):

    super(TestPostMigrationFix, self).setUp()
    self.course1 = CourseFactory.create()
    self.course2 = CourseFactory.create()
    self.user1 = UserFactory(is_staff=True)
    self.user2 = UserFactory(is_staff=True)
    self.request = RequestFactory().get('dummy_url')
    self.request.user = self.user1
