def test_get_difficulty(self): self.assertTrue(str(StraksExplorer().get_difficulty()))
def test_get_transcation_chart(self): self.assertTrue(StraksExplorer().get_transaction_chart())
def test_get_difficulty_chart(self): self.assertTrue(StraksExplorer().get_difficulty_chart())
def test_get_hashrate_chart(self): self.assertTrue(StraksExplorer().get_hashrate_chart())
def test_get_richlist(self): self.assertTrue(str(StraksExplorer().get_richlist().get('addresses')))
def test_get_masternodes(self): self.assertTrue( str(StraksExplorer().get_masternodes('enabled', 1, 10).get('masternodes')))
def test_get_latest_block(self): self.assertTrue(StraksExplorer().get_latest_block().get('last_block'))
def test_get_address_total_sent(self): self.assertTrue( str(StraksExplorer().get_address_total_sent( 'SjtUfJU17izF9yh5hnCmtWmGyhhCv83eHb')))
def test_get_transcations_from_address(self): self.assertTrue( str(StraksExplorer().get_transactions_from_address( '000000000005e7e241410c528362cd02eeaa026237eb08c502ef802fa9d00cf8', '1', '5', '0').get('txs')))
def test_get_raw_transaction_data_from_transaction_hash(self): self.assertTrue( str(StraksExplorer( ).get_raw_transaction_data_from_transaction_hash( '1819fd02b866f14686c68c76af446857abd1d80798947b51fb91381a333e9f05' ).get('txs')))
def test_get_raw_block_from_blockheight(self): self.assertTrue( str(StraksExplorer().get_raw_block_from_block_height('foo').get( 'errors')))
def test_get_block_from_blockhash(self): self.assertTrue( str(StraksExplorer().get_block_from_block_hash( '000000000005e7e241410c528362cd02eeaa026237eb08c502ef802fa9d00cf8' )))
def test_get_blocks(self): self.assertTrue(str(StraksExplorer().get_blocks(25, 3)))
def test_get_circulating_supply(self): self.assertTrue(str(StraksExplorer().get_circulating_supply()))
def test_get_total_supply(self): self.assertTrue(str(StraksExplorer().get_total_supply()))