Beispiel #1
0
 def test_get_unspent_test_unused(self):
     assert len(BlockrAPI.get_unspent_testnet(TEST_ADDRESS_UNUSED)) == 0
Beispiel #2
0
 def test_get_unspent_main_unused(self):
     assert len(BlockrAPI.get_unspent(MAIN_ADDRESS_UNUSED)) == 0
Beispiel #3
0
 def test_get_unspent_test_used(self):
     assert len(BlockrAPI.get_unspent_testnet(TEST_ADDRESS_USED2)) >= 194
Beispiel #4
0
 def test_get_transactions_test_unused(self):
     assert len(
         BlockrAPI.get_transactions_testnet(TEST_ADDRESS_UNUSED)) == 0
Beispiel #5
0
 def test_get_unspent_return_type(self):
     assert iter(BlockrAPI.get_unspent(MAIN_ADDRESS_USED1))
Beispiel #6
0
 def test_get_transactions_main_unused(self):
     assert len(BlockrAPI.get_transactions(MAIN_ADDRESS_UNUSED)) == 0
Beispiel #7
0
 def test_get_transactions_test_used(self):
     assert len(
         BlockrAPI.get_transactions_testnet(TEST_ADDRESS_USED1)) >= 200
Beispiel #8
0
 def test_get_transactions_main_used(self):
     assert len(BlockrAPI.get_transactions(MAIN_ADDRESS_USED1)) >= 200
Beispiel #9
0
 def test_get_transactions_return_type(self):
     assert iter(BlockrAPI.get_transactions(MAIN_ADDRESS_USED1))
     assert iter(BlockrAPI.get_transactions_testnet(TEST_ADDRESS_USED1))
Beispiel #10
0
 def test_get_balance_test_unused(self):
     assert BlockrAPI.get_balance_testnet(TEST_ADDRESS_UNUSED) == 0
Beispiel #11
0
 def test_get_balance_main_unused(self):
     assert BlockrAPI.get_balance(MAIN_ADDRESS_UNUSED) == 0
Beispiel #12
0
 def test_get_balance_return_type(self):
     assert isinstance(BlockrAPI.get_balance(MAIN_ADDRESS_USED1), int)
     assert isinstance(BlockrAPI.get_balance_testnet(TEST_ADDRESS_USED1),
                       int)