コード例 #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')