'Create a textbook by ID'

def test_create_new_by_id(self):

    textbook = {'tab_title': 'a    new    textbook', 'url': 'supercool.pdf', 'id': '1supercool'}
    url = self.get_details_url('1supercool')
    resp = self.client.post(url, data=json.dumps(textbook), content_type='application/json')
    self.assertEqual(resp.status_code, 201)
    resp2 = self.client.get(url)
    self.assertEqual(resp2.status_code, 200)
    compare = json.loads(resp2.content)
    self.assertEqual(compare, textbook)
    self.reload_course()
    self.assertEqual(self.course.pdf_textbooks, [self.textbook1, self.textbook2, textbook])
