예제 #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
파일: test_driver.py 프로젝트: Juniper/nova
 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')