class TestGeneral(unittest.TestCase): def setUp(self): #run before each test self.ATSxxxx = OTA().open(host, type='test') def tearDown(self): #Run after each test self.assertEqual(self.ATSxxxx.SCPI_error(self)[0], '0') self.ATSxxxx.close() def test_OTA_Query(self): self.ATSxxxx.query('*IDN?')
class TestGeneral(unittest.TestCase): def setUp(self): #run before each test self.ATSxxxx = OTA().jav_OpenTest(host) def tearDown(self): #Run after each test self.assertEqual(self.ATSxxxx.jav_Error()[0], '0') self.ATSxxxx.jav_Close() ############################################################################### ### <Test> ############################################################################### def test_OTA_Query(self): self.ATSxxxx.query('*IDN?')