@patch('os.path.isdir', MagicMock(return_value=False))
    def test_recv_return_unavailable(self):
        files = {'saltines': '/srv/salt/saltines',
                 'biscuits': '/srv/salt/biscuits'}
        dest = '/srv/salt/cheese'
        self.assertEqual(cp.recv(files, dest), 'Destination unavailable')
Test if recv returns unavailable.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/cp_test.py/CpTestCase.test_recv_return_unavailable