Example #1
0
 def test_add(self):
     """
     Test for Creates a bridge
     """
     mock = MagicMock(return_value="A")
     with patch.object(bridge, "_os_dispatch", mock):
         self.assertEqual(bridge.add(), "A")
Example #2
0
 def test_add(self):
     '''
     Test for Creates a bridge
     '''
     mock = MagicMock(return_value='A')
     with patch.object(bridge, '_os_dispatch', mock):
         self.assertEqual(bridge.add(), 'A')
Example #3
0
 def test_add(self):
     '''
     Test for Creates a bridge
     '''
     mock = MagicMock(return_value='A')
     with patch.object(bridge, '_os_dispatch', mock):
         self.assertEqual(bridge.add(), 'A')