def test_resource_info(self): t = LCE.query_comp_resource_info(0) _LOG.debug("info tuple = %s" % str(t)) self.assertEqual(len(t), 4) lc_env = self.get_inst() self.assertRaises(ValueError, lc_env.get_comp_resource_info) lc_env.resource_index = 0 t = lc_env.comp_resource_info self.assertEqual(len(t), 4) _LOG.debug("info tuple = %s" % str(t)) self.assertRaises(IndexError, LCE.query_comp_resource_info, -1)
def test_num_resources(self): self.assertTrue(LCE.get_num_comp_resources() > 0)