@mock.patch.object(utils, 'LOG', autospec=True)
def test_warn_about_deprecated_extra_vif_port_id(self, mock_log):
    utils.warn_deprecated_extra_vif_port_id = False
    utils.warn_about_deprecated_extra_vif_port_id()
    utils.warn_about_deprecated_extra_vif_port_id()
    self.assertEqual(1, mock_log.warning.call_count)
    self.assertIn("extra['vif_port_id'] is deprecated and will not", mock_log.warning.call_args[0][0])
@mock.patch.object(utils, 'LOG', autospec=True)
def test_warn_about_deprecated_extra_vif_port_id(self, mock_log):
    utils.warn_deprecated_extra_vif_port_id = False
    utils.warn_about_deprecated_extra_vif_port_id()
    utils.warn_about_deprecated_extra_vif_port_id()
    self.assertEqual(1, mock_log.warning.call_count)
    self.assertIn("extra['vif_port_id'] is deprecated and will not", mock_log.warning.call_args[0][0])