@mock.patch('cloudferry.lib.utils.remote_runner.RemoteRunner.run_ignoring_errors')
def test_remove_bbcp(self, mock_run_ignoring_errors):
    cloud = mock.Mock()
    cloud.hosts_with_bbcp = {'fake_host_1', 'fake_host_2'}
    cloud.position = 'src'
    bbcp_copier.remove_bbcp(cloud)
    self.assertEqual(2, mock_run_ignoring_errors.call_count)
@mock.patch('cloudferry.lib.utils.remote_runner.RemoteRunner.run_ignoring_errors')
def test_remove_bbcp(self, mock_run_ignoring_errors):
    cloud = mock.Mock()
    cloud.hosts_with_bbcp = {'fake_host_1', 'fake_host_2'}
    cloud.position = 'src'
    bbcp_copier.remove_bbcp(cloud)
    self.assertEqual(2, mock_run_ignoring_errors.call_count)