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