def destroy(self):

        control = self.control
        if control is not None:
            control.hide()
            self.component.destroy()
            control.deleteLater()

        self.control = None
        self.component = None
Tests that adding basic auth to a URL works as expected
dataset/ETHPy150Open enthought/pyface/pyface/tasks/enaml_pane.py/EnamlPane.destroy--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/utils/url_test.py/UrlTestCase.test_http_basic_auth