@mock.patch('os_vif.unplug')
def _test_disconnect(self, m_vif_unplug, report=None):
    base.disconnect(self.vif, self.instance_info, self.ifname, self.netns, report)
    m_vif_unplug.assert_called_once_with(self.vif, self.instance_info)
    if report:
        report.assert_called_once()
@mock.patch('os_vif.unplug')
def _test_disconnect(self, m_vif_unplug, report=None):
    base.disconnect(self.vif, self.instance_info, self.ifname, self.netns, report)
    m_vif_unplug.assert_called_once_with(self.vif, self.instance_info)
    if report:
        report.assert_called_once()