예제 #1
0
파일: test.py 프로젝트: c00w/btcnet_info
    def testPolling(self):
        count = len(__init__.get_pools())
        shares = 0
        for item in __init__.get_pools():
            try:
                a = float(item.shares)
                shares += 1
            except:
                print 'Invalid Pool: %s' %( item.name)
                pass
        print
        print "Valid Pools %s/%s" % (shares, count)

        count = len(__init__.get_coins())
        shares = 0
        for item in __init__.get_coins():
            if item.exchange:
                shares += 1
        print "Valid Coins w/ Exchanges %s/%s" % (shares, count)

        count = len(__init__.get_coins())
        shares = 0
        for item in __init__.get_coins():
            if item.difficulty:
                print "%s: %s" % (item.name, item.difficulty)
                shares += 1
        print "Valid Coins w/ Difficulty %s/%s" % (shares, count)
예제 #2
0
파일: test.py 프로젝트: c00w/btcnet_info
 def testMineAddress(self):
     valid = 0
     total = 0
     for item in __init__.get_pools():
         total += 1
         if item['mine.address'] != None:
             valid += 1
     print 'Pools with addresses %s/%s' % (valid, total)
예제 #3
0
파일: test.py 프로젝트: c00w/btcnet_info
 def testPools(self):
     for item in __init__.get_pools():
         self.assertTrue(type(item) is pools.Pool )