5 Commits

Author SHA1 Message Date
Sylvain Bellemare
7bd6d485bc Test Bigchain.get_blocks_status_containing_tx() (#399)
* Test Bigchain.get_blocks_status_containing_tx()

exception case

* Test Bigchaindb.has_previous_vote()

* Add missing blank lines (pep 8)

* Group imports

* Move ImproperVoteError into .exceptions.py

* Simplify logic

* Simplify formatting

* Imrpove the docstrings a bit

* Move GenesisBlockAlreadyExistsError

into .exceptions.py

* Remove unused import

* Add missing blank line

* Remove extra blank line

* Group imports from same module together

* Add test for Bigchain.transaction_exists()
2016-06-28 14:19:22 +02:00
troymc
cd7070722f Renamed Bigchain.federation_nodes as Bigchain.nodes_except_me 2016-06-16 16:58:01 +02:00
Matt Smith
ad535c7895 Tests for loading consensus plugins 2016-03-14 13:27:17 -07:00
vrde
3a714a7f8e Add config to blueprint and fix tests madness
There was a problem related to the import of the module
`bigchaindb.web.views`.
The module, when imported, inizialises a new `Bigchain` instance, and
this is wrong for testing and because it's a bad practice.

I spent more or less 2h finding out the problem.
2016-03-03 01:40:40 +01:00
Sylvain Bellemare
5b8a31a341 Re-worked tests such that #27 is covered 2016-02-15 16:30:37 +01:00