def METHOD_NAME(self):
    element = ElementBase()
    self.assertFalse(element.has_children)
    element = Element()
    self.assertFalse(element.has_children)
    element.complex_type = ComplexType()
    self.assertTrue(element.has_children)