Unit tests¶
Introduction¶
Some unit tests used to verify functionality.
Backend tests¶
-
cryptoassets.core.tests.base.
has_local_bitcoind
()[source]¶ Use this to disable some tests in CI enviroment where 15 minute deadline applies.
-
cryptoassets.core.tests.base.
is_slow_test_hostile
()[source]¶ Use this to disable some tests in CI enviroment where 15 minute deadline applies.
-
class
cryptoassets.core.tests.base.
CoinTestRoot
[source]¶ Have only initialization methods for the tests.
-
class
cryptoassets.core.tests.base.
CoinTestCase
[source]¶ Abstract base class for all cryptocurrency backend tests.
This verifies that a cryptocurrency backend works against cryptoassets.core models API.
Inherit from this test case, implement backend abstract methods and run the test case. If all test passes, the backend is compatible with cryptoassets.core.
-
test_send_internal_low_balance
()[source]¶ Does internal transaction where balance requirement is not met.
-
test_send_internal_same_account
()[source]¶ Does internal transaction where balance requirement is not met.
-
test_cannot_import_existing_address
()[source]¶ Do not allow importing an address which already exists.
-
test_charge_network_fee
()[source]¶ Do an external transaction and see we account network fees correctly.
-