Ejemplo n.º 1
0
    def test_all_votes_by_address(self):
        from dpostools import dbtools

        mynode = dbtools.OxycoinNode(
            host='localhost',
            user='******',
            password='******',
        )
        all_votes = mynode.all_votes_by_address('9656507962620078912X')
        self.assertIsInstance(all_votes, list)
        self.assertIsNotNone(all_votes)
Ejemplo n.º 2
0
    def test_payouts_to_address(self):
        from dpostools import dbtools

        mynode = dbtools.OxycoinNode(
            host='localhost',
            user='******',
            password='******',
        )

        payouts = mynode.payouts_to_address('2660824342794420041X')
        self.assertIsInstance(payouts, list)
Ejemplo n.º 3
0
    def test_node_setup(self):
        from dpostools import dbtools

        mynode = dbtools.OxycoinNode(
            host='localhost',
            user='******',
            password='******',
        )

        self.assertIsInstance(mynode, dbtools.OxycoinNode)
        self.assertIsInstance(mynode.scheme, dict)
Ejemplo n.º 4
0
    def test_transactions_from_address(self):
        from dpostools import dbtools

        mynode = dbtools.OxycoinNode(
            host='localhost',
            user='******',
            password='******',
        )

        transactions = mynode.transactions_from_address('2660824342794420041X')
        self.assertIsInstance(transactions, list)
        self.assertIsNotNone(transactions)
Ejemplo n.º 5
0
    def all_delegates(self):
        from dpostools import dbtools

        mynode = dbtools.OxycoinNode(
            host='localhost',
            user='******',
            password='******',
        )

        all_delegates = mynode.all_delegates()
        self.assertIsInstance(all_delegates, list)
        self.assertTrue(len(all_delegates) > 201)
Ejemplo n.º 6
0
    def test_node_height_details(self):
        from dpostools import dbtools

        mynode = dbtools.OxycoinNode(
            host='localhost',
            user='******',
            password='******',
        )

        node_height_details = mynode.node_height_details()
        self.assertIsInstance(node_height_details, dict)
        self.assertIsNotNone(node_height_details)
Ejemplo n.º 7
0
    def test_account_details(self):
        from dpostools import dbtools

        mynode = dbtools.OxycoinNode(
            host='localhost',
            user='******',
            password='******',
        )

        details = mynode.account_details('2660824342794420041X')
        self.assertIsInstance(details, dict)
        self.assertIsNotNone(details)
Ejemplo n.º 8
0
    def test_current_delegates(self):
        from dpostools import dbtools

        mynode = dbtools.OxycoinNode(
            host='localhost',
            user='******',
            password='******',
        )

        delegates = mynode.current_delegates()
        self.assertIsInstance(delegates, list)
        self.assertIsNotNone(delegates)
        # this test only works for Ark
        self.assertTrue(len(delegates) == 201)