'Shouldn\'t be able to change is_archive bit without permission.'

def test_archive_permission_on(self):

    u = UserFactory()
    add_permission(u, Document, 'change_document')
    add_permission(u, Document, 'archive_document')
    self.client.login(username=u.username, password='testpass')
    data = new_document_data()
    data.update(form='doc', is_archived='on')
    response = post(self.client, 'wiki.edit_document', data, args=[self.d.slug])
    eq_(200, response.status_code)
    doc = Document.objects.get(pk=self.d.pk)
    assert doc.is_archived
