'Test that you can create a textbook'

def test_happy_path(self):

    resp = self.client.post(self.url, data=json.dumps(self.textbook), content_type='application/json', HTTP_ACCEPT='application/json', HTTP_X_REQUESTED_WITH='XMLHttpRequest')
    self.assertEqual(resp.status_code, 201)
    self.assertIn('Location', resp)
    textbook = json.loads(resp.content)
    self.assertIn('id', textbook)
    del textbook['id']
    self.assertEqual(self.textbook, textbook)
