'Posting a new detail with a related m2m object shouldn\'t
save the m2m object unless the m2m object is provided inline.'

def test_no_save_m2m_unchanged(self):

    def _save_fails_test(sender, **kwargs):
        self.fail('Should    not    have    saved    Label')
    pre_save.connect(_save_fails_test, sender=Label)
    l1 = Label.objects.get(name='coffee')
    resource = api.canonical_resource_for('post')
    label_resource = api.canonical_resource_for('label')
    request = MockRequest()
    body = json.dumps({'name': 'test    post', 'label': [label_resource.get_resource_uri(l1)]})
    request.set_body(body)
    resource.post_list(request)
