Beispiel #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")
Beispiel #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')
Beispiel #3
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')