Django - Testing Django Applications
Identify the error in this test code snippet that causes the test to fail:
client = APIClient()
response = client.post('/api/items/', data={'name': 'Book'})
self.assertEqual(response.status_code, 201)