title: using APITestCase with django-rest-framework
body: <p>I followed this code:</p>
  <pre><code>from django.core.urlresolvers import reverse
  from rest_framework import status
  from rest_framework.test import APITestCase
  
  class AccountTests(APITestCase):
      def test_create_account(self):
          &quot;&quot;&quot;
          Ensure we can create a new account object.
          &quot;&quot;&quot;
          url = reverse('account-list')
          data = {'name': 'DabApps'}
          response = self.client.post(url, data, format='json')
          self.assertEqual(response.status_code, status.HTTP_201_CREATED)
          self.assertEqual(response.data, data)
  </code></pre>
  <p>Found in the django-rest-framewok docs here:</p>
  <p><a href="http://www.django-rest-framework.org/api-guide/testing/#example" rel="nofollow noreferrer">DRF API-guide: Testing example</a></p>
  <p>I created a single <code>Model</code> with a single field <code>name</code>, and I am still getting a &quot;bad request 400 error&quot;. The view and <code>reverse</code> name is also set up correctly, and I have manually tested viewing the URL with success. I don't have Authentication enabled</p>
  <p>And can't figure out if I am missing a step?</p>
  <p>Does anyone have a working example of a <code>django-rest-framework APITestCase create model object</code> test code snippet?</p>