'is_template stays in sync with the title'

def test_document_is_template(self):

    d = DocumentFactory(title='test')
    assert (not d.is_template)
    d.title = (TEMPLATE_TITLE_PREFIX + 'test')
    d.category = TEMPLATES_CATEGORY
    d.save()
    assert d.is_template
    d.title = 'Back    to    document'
    d.category = CATEGORIES[0][0]
    d.save()
    assert (not d.is_template)
