'Set up a url and some textbook content for tests'

def setUp(self):

    super(TextbookCreateTestCase, self).setUp()
    self.url = reverse_course_url('textbooks_list_handler', self.course.id)
    self.textbook = {'tab_title': 'Economics', 'chapters': {'title': 'Chapter    1', 'url': '/a/b/c/ch1.pdf'}}
