Exemple #1
0
 def test_get_raw_transaction_testnet(self):
     assert BitcoinDotComAPI.get_raw_transaction_testnet(
         TEST_TX)['txid'] == TEST_TX
Exemple #2
0
 def test_get_unspent_test_unused(self):
     assert len(
         BitcoinDotComAPI.get_unspent_testnet(TEST_ADDRESS_UNUSED)) == 0
Exemple #3
0
 def test_get_raw_transaction(self):
     assert BitcoinDotComAPI.get_raw_transaction(MAIN_TX)['txid'] == MAIN_TX
Exemple #4
0
 def test_get_unspent_main_unused(self):
     assert len(BitcoinDotComAPI.get_unspent(MAIN_ADDRESS_UNUSED)) == 0
Exemple #5
0
 def test_get_unspent_test_used(self):
     assert len(
         BitcoinDotComAPI.get_unspent_testnet(TEST_ADDRESS_USED2)) >= 194
Exemple #6
0
 def test_get_transactions_test_used(self):
     assert len(
         BitcoinDotComAPI.get_transactions_testnet(
             TEST_ADDRESS_USED2)) >= 444
Exemple #7
0
 def test_get_unspent_return_type(self):
     assert iter(BitcoinDotComAPI.get_unspent(MAIN_ADDRESS_USED1))
Exemple #8
0
 def test_get_transaction(self):
     assert len(str(BitcoinDotComAPI.get_transaction(MAIN_TX))) >= 156
Exemple #9
0
 def test_get_transaction_testnet(self):
     assert len(str(
         BitcoinDotComAPI.get_transaction_testnet(TEST_TX2))) >= 156
Exemple #10
0
 def test_get_transactions_main_unused(self):
     assert len(BitcoinDotComAPI.get_transactions(MAIN_ADDRESS_UNUSED)) == 0
Exemple #11
0
 def test_get_transactions_return_type(self):
     assert iter(BitcoinDotComAPI.get_transactions(MAIN_ADDRESS_USED1))
Exemple #12
0
 def test_get_balance_test_unused(self):
     assert BitcoinDotComAPI.get_balance_testnet(TEST_ADDRESS_UNUSED) == 0
Exemple #13
0
 def test_get_balance_main_unused(self):
     assert BitcoinDotComAPI.get_balance(MAIN_ADDRESS_UNUSED) == 0
Exemple #14
0
 def test_get_balance_return_type(self):
     assert isinstance(BitcoinDotComAPI.get_balance(MAIN_ADDRESS_USED1),
                       int)