예제 #1
0
 def test_addif(self):
     """
     Test for Adds an interface to a bridge
     """
     mock = MagicMock(return_value="A")
     with patch.object(bridge, "_os_dispatch", mock):
         self.assertEqual(bridge.addif(), "A")
예제 #2
0
 def test_addif(self):
     '''
     Test for Adds an interface to a bridge
     '''
     mock = MagicMock(return_value='A')
     with patch.object(bridge, '_os_dispatch', mock):
         self.assertEqual(bridge.addif(), 'A')
예제 #3
0
파일: bridge_test.py 프로젝트: DaveQB/salt
 def test_addif(self):
     '''
     Test for Adds an interface to a bridge
     '''
     mock = MagicMock(return_value='A')
     with patch.object(bridge, '_os_dispatch', mock):
         self.assertEqual(bridge.addif(), 'A')