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

def test_apifielderror_missing_not_null_field(self):

    resource = api.canonical_resource_for('product')
    request = MockRequest()
    body = json.dumps({})
    request.set_body(body)
    with self.assertRaises(ApiFieldError):
        resource.post_list(request)
