'Test that the transfer method of a BTC wallet raises an error when we don\'t have enough funds'

@deferred(timeout=10)
def test_btc_wallet_transfer_no_funds(self):

    test_deferred = Deferred()
    wallet = BitcoinWallet(self.session_base_dir)
    mock_daemon = MockObject()
    wallet.get_daemon = (lambda : mock_daemon)
    wallet.transfer(3, 'abacd').addErrback((lambda _: test_deferred.callback(None)))
    return test_deferred
