'Posting a new detail with no related objects
should require one query to save the object'

def test_one_query_for_post_list(self):

    resource = api.canonical_resource_for('category')
    request = MockRequest()
    body = json.dumps({'name': 'Foo', 'parent': None})
    request.set_body(body)
    with self.assertNumQueries(1):
        resource.post_list(request)
