Пример #1
0
 def test_detach_interface(self, mock_detach_interface):
     driver = self._get_driver()
     driver.detach_interface('fake_context', 'fake_instance', 'fake_vif')
     mock_detach_interface.assert_called_once_with('fake_instance',
                                                   'fake_vif')
Пример #2
0
 def test_detach_interface(self, mock_detach_interface):
     driver = self._get_driver()
     driver.detach_interface('fake_context', 'fake_instance', 'fake_vif')
     mock_detach_interface.assert_called_once_with('fake_instance',
                                                   'fake_vif')