'POST requests to ListCreateAPIView should create a new object.'

def test_post_root_view(self):

    data = {u'text': u'foobar'}
    request = factory.post(u'/', data, format=u'json')
    with self.assertNumQueries(1):
        response = self.view(request).render()
    assert (response.status_code == status.HTTP_201_CREATED)
    assert (response.data == {u'id': 4, u'text': u'foobar'})
    created = self.objects.get(id=4)
    assert (created.text == u'foobar')
