'You can\'t have children for a non-localizable document.'

def test_only_localizable_allowed_children(self):

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