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'])
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'])
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
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