@mock.patch('cloudferry.lib.utils.utils.forward_agent')
@mock.patch('os.path.isfile')
def test_usage_false(self, mock_isfile, _):
    mock_isfile.return_value = False
    self.assertFalse(self.copier.check_usage(self.data))
    mock_isfile.return_value = True
    with mock.patch.object(self.copier, 'copy_bbcp', side_effect=remote_runner.RemoteExecutionError):
        self.assertFalse(self.copier.check_usage(self.data))
@mock.patch('cloudferry.lib.utils.utils.forward_agent')
@mock.patch('os.path.isfile')
def test_usage_false(self, mock_isfile, _):
    mock_isfile.return_value = False
    self.assertFalse(self.copier.check_usage(self.data))
    mock_isfile.return_value = True
    with mock.patch.object(self.copier, 'copy_bbcp', side_effect=remote_runner.RemoteExecutionError):
        self.assertFalse(self.copier.check_usage(self.data))