'You can\'t make a document non-localizable if it has children.'

def test_cannot_make_non_localizable_if_children(self):

    en_doc = DocumentFactory(is_localizable=True)
    DocumentFactory(parent=en_doc, locale='de')
    en_doc.is_localizable = False
    self.assertRaises(ValidationError, en_doc.save)
