Esempio n. 1
0
 def testReadStorageInfo(self):
     res = pisock.dlp_ReadStorageInfo(sd, 0)
     assert res.has_key('manufacturer')
     if VERBOSE:
         print 'ReadStorageInfo: card 0, romSize=%s ramSize=%s ramFree=%s manufacturer=%s' % (
             res['romSize'], res['ramSize'], res['ramFree'],
             res['manufacturer'])
Esempio n. 2
0
 def testReadStorageInfo(self):
     res = pisock.dlp_ReadStorageInfo(sd,0)
     assert res.has_key('manufacturer')
     if VERBOSE:
         print 'ReadStorageInfo: card 0, romSize=%s ramSize=%s ramFree=%s manufacturer=%s' % (
             res['romSize'],
             res['ramSize'],
             res['ramFree'],
             res['manufacturer'])
Esempio n. 3
0
 def testReadStorageInfo(self):
     more = 1
     i = 0
     while more:
         res = pisock.dlp_ReadStorageInfo(sd, i)
         assert res != None and res.has_key('name')
         if VERBOSE:
             print "ReadStorageInfo: card=%d version=%d creation=%ld romSize=%ld ramSize=%ld ramFree=%ld name='%s' manufacturer='%s'" % (
                 res['card'], res['version'], res['creation'],
                 res['romSize'], res['ramSize'], res['ramFree'],
                 res['name'], res['manufacturer'])
         if res['more'] == 0:
             break
Esempio n. 4
0
 def testReadStorageInfo(self):
     more = 1
     i = 0
     while more:
         res = pisock.dlp_ReadStorageInfo(sd,i)
         assert res!=None and res.has_key('name')
         if VERBOSE:
             print "ReadStorageInfo: card=%d version=%d creation=%ld romSize=%ld ramSize=%ld ramFree=%ld name='%s' manufacturer='%s'" % (
                 res['card'],
                 res['version'],
                 res['creation'],
                 res['romSize'],
                 res['ramSize'],
                 res['ramFree'],
                 res['name'],
                 res['manufacturer'])
         if res['more'] == 0:
             break