diff --git a/bigchaindb/core.py b/bigchaindb/core.py index 71382670..32d50216 100644 --- a/bigchaindb/core.py +++ b/bigchaindb/core.py @@ -147,7 +147,7 @@ class Bigchain(object): If no transaction with that `txid` was found it returns `None` """ - response = r.table('bigchain').concat_map(lambda doc: doc['block']['transactions']) \ + response = r.table('bigchain').concat_map(lambda doc: doc['block']['transactions'])\ .filter(lambda transaction: transaction['id'] == txid).run(self.conn) # transaction ids should be unique diff --git a/tests/db/test_bigchain_api.py b/tests/db/test_bigchain_api.py index 84e0457a..47d02376 100644 --- a/tests/db/test_bigchain_api.py +++ b/tests/db/test_bigchain_api.py @@ -745,15 +745,24 @@ class TestBigchainBlock(object): class TestMultipleInputs(object): - def test_transfer_transaction_multiple(self, b): + def test_transfer_single_owners_single_input(self, b): pass - def test_transfer_single_input_from_multi_input(self, b): + def test_transfer_single_owners_multiple_inputs(self, b): + pass + + def test_transfer_single_owners_single_input_from_multiple_outputs(self, b): + pass + + def test_multiple_owners(self, b): pass def test_get_spent(self, b): pass + def test_get_owned_ids(self, b): + pass + class TestCryptoconditions(object): def test_fulfillment_transaction_create(self, b, user_vk):