def tearDownClass(cls): instance, pkg, applet = cls.des.getaids() api_pcsc.connectreader() api_gp.card() api_gp.auth() api_gp.deleteaid(pkg, True, expectSW='9000') cls.des = None api_pcsc.disconnect()
def tearDownClass(cls): instance, pkg, applet = cls.etc.getaids() api_pcsc.connectreader(Cloud4700.READER_NAME) api_gp.card() api_gp.auth() api_gp.deleteaid(pkg, True, expectSW='9000') cls.etc = None cls.cloud.enable_all_classes() cls.cloud.enable_pps() cls.cloud.set_clock_divison(4) # restore to 4.8 MHz cls.cloud = None api_pcsc.disconnect()
def setUpClass(cls): # delete, load, install alg = ALG_SECURE_RANDOM() instance, pkg, applet = alg.getaids() api_pcsc.connectreader() api_gp.card() api_gp.auth() api_gp.deleteaid(pkg, True, expectSW='') # omit delete result api_gp.upload(alg.getcappath(), pkg) api_gp.install(instance, pkg, applet) cls.alg = alg api_pcsc.disconnect()
def tearDown(self): self.bl = None api_pcsc.disconnect()
def tearDown(self): api_pcsc.disconnect()