Commit Graph

51 Commits

Author SHA1 Message Date
ThomasV 774bdcde73 fix test_parse_URI 2016-02-16 10:28:40 +01:00
ThomasV 963dcf0c6b rm test_ripemd 2016-01-26 15:48:34 +01:00
ThomasV abdb7f8470 fix tests 2016-01-15 18:14:06 +01:00
ThomasV d867fcc266 update create_main_account in tests 2016-01-07 01:02:44 +01:00
Neil Booth e1c0298fc2 Write the wallet less often
This should speed up synchronization / restoration of large wallets.
Wallets are written only when they switch to up_to_date state, or
when stop_threads() is called when closing the daemon, or when
a command line command finishes.
2015-12-20 15:47:46 +09:00
ThomasV f77f63e158 remove failing tests, due to high S in signatures 2015-10-20 13:15:13 +02:00
Neil Booth 12583246ee Fix testcase 2015-09-11 20:17:20 +09:00
Roman Zeyde a097c47b0b test_transaction: fix test_sweep case 2015-08-31 17:03:59 +03:00
Roman Zeyde eb66289314 test_transaction: add BCDataStream test case 2015-08-25 15:51:22 +03:00
Roman Zeyde 33b78551a3 test_transaction: add Transaction.sweep() test case 2015-08-25 15:21:44 +03:00
Roman Zeyde 6a7e145053 test_transaction: add test suite for lib.transaction module 2015-08-25 12:05:49 +03:00
Roman Zeyde 3c3d96f69e test_mnemonic: add tests for mnemonics 2015-08-24 17:35:17 +03:00
Roman Zeyde bb97624de2 test_account: add test case for OldAccount 2015-08-24 10:57:41 +03:00
Roman Zeyde 893849ab39 test_account: add test case for BIP32_Account 2015-08-24 10:57:41 +03:00
Roman Zeyde a92ca583bd test_interface: fix check_host_name test 2015-08-24 10:02:10 +03:00
Roman Zeyde ac8e792c58 test_ripemd: add simple test case for ripemd module 2015-08-15 09:52:27 +03:00
Roman Zeyde fa412c3a86 test_bitcoin: add tests for int packing 2015-08-15 09:41:20 +03:00
Roman Zeyde 175fef2d56 test_bitcoin: add test case for seeds 2015-08-15 09:20:01 +03:00
Roman Zeyde 5fbd7553ed interface: fix check_host_name() pattern matching
The existing pattern matching code:

    val.find('*.') == 0 and name.find(val[1:]) + len(val[1:]) == len(name)

will return True in the following case:

   val = '*.host.com'
   name = 'blah.org'

since string.find() will return -1, len(val[1:]) == 9 and len(name) == 8.
2015-07-26 18:11:30 +03:00
Roman Zeyde 87d3fafa22 util: fix small typo at parse_URI() and update its unittests 2015-07-25 12:41:37 +03:00
ThomasV a3dd51f476 rm failing test 2015-05-28 15:43:50 +02:00
ThomasV 7becb28ec8 Merge pull request #1246 from kyuupichan/bug_fix
e20dfc unintentionally inverted portable condition
2015-05-25 13:28:42 +02:00
Neil Booth e63ac88c77 e20dfc unintentionally inverted portable condition
This wasn't noticed because the test was also broken.
2015-05-25 16:59:16 +09:00
Neil Booth 39fe24b4d3 Rename auto_cycle to auto_connect in config
User config is updated if appropriate.
Add tests behaviour is as expected.
Just the one rename-it reference to auto_cycle remains.
2015-05-25 16:18:52 +09:00
Neil Booth e20dfcd3eb Fix SimpleConfig
SimpleConfig claims to handle configuration options in priority
command line, user config, system config, which makes sense.
In fact it appears it used priority command line, system config,
user config.
Also, from the priority ordering, it would seem correct that a
value should be unmodifiable if and only if it's set on the command
line.  Previously anything in the system config would be unmodifiable.

This patch fixes these and cleans the code up a bit.  I noticed this
whilst attempting to unify the 'auto_cycle' setting.

Fixup tests accordingly.
2015-05-25 15:16:19 +09:00
ThomasV 81be685644 remove tests broken after WalletStorage update 2015-05-11 11:59:39 +02:00
ThomasV 9205a35c22 rm failing test 2015-02-17 15:01:06 +01:00
ThomasV 5262d6ae73 remove wrong test 2015-01-06 18:19:00 +01:00
ThomasV 03e420b1c0 fix tests 2014-09-01 10:49:04 +02:00
ThomasV f183554446 rm failing tests 2014-08-28 17:48:59 +02:00
ThomasV c2d175cb60 remove broken tests 2014-08-25 15:55:06 +02:00
ThomasV ef74ae57ff fix tests 2014-08-25 15:32:21 +02:00
ThomasV 03f4b4c933 fix broken test 2014-08-25 15:11:52 +02:00
ThomasV 9f8e537a7e fix broken test 2014-08-25 14:16:31 +02:00
Chris Glass 73ee95ec9a Removed failing test for now
As discussed on IRC, it might be too early to write this test since the
behavior is not entirely defined yet.
2014-07-09 11:04:49 +02:00
Chris Glass a9592459ed Add tests to the wallet.py module.
This increases test coverage a lot.
2014-07-09 11:03:44 +02:00
Michael Wozniak 09154fdf20 Shouldn't redo URI encoding 2014-06-30 11:10:50 -04:00
Michael Wozniak 8ad7a5a085 Update tests and fix URI parsing
Update URI parsing for BIP0072 compatability
Update tests for parse_URI
2014-06-30 10:41:12 -04:00
Chris Glass 0ac02bf040 Made all bip32 primitives testnet compatible. 2014-06-27 15:44:43 +02:00
Chris Glass b2f8d507de Fixed docstrings 2014-06-26 13:24:14 +02:00
Chris Glass 99a31b0c6a Fixes previously introduced bug
The passed in command line options were saved to the user config.
2014-06-26 13:22:02 +02:00
Chris Glass 34f0a65c49 Added more tests for user config parsing. 2014-06-26 11:08:13 +02:00
Chris Glass ad3640d7a4 Added tests for the system config function. 2014-06-26 10:08:00 +02:00
Chris Glass 5eeae69425 Added more tests for edge cases. 2014-06-25 18:04:37 +02:00
Chris Glass fff3ed9b77 Added a lot of tests for SimpleConfig
Refactored the SImpleConfig class a lot to make sure the behavior is
always defined.
2014-06-25 17:34:51 +02:00
Chris Glass af5a0eba33 Added mnemonic to seed tests 2014-06-25 11:21:39 +02:00
Chris Glass 4675ea5321 Added util test file 2014-06-25 10:50:21 +02:00
Chris Glass bc98223188 Added more bitcoin tests 2014-06-25 10:39:50 +02:00
Chris Glass 9dc814ec8c Made _do_test_crypto private to allow nosetests 2014-06-25 08:45:37 +02:00
Chris Glass 413945435a Added private/public key tests
Including converting from a private key to a public key, and
deriving the primary address from a private key.
2014-06-25 08:27:45 +02:00