def setUp(self): Monitis.debug = True # find an existing transaction monitor res = trans.transaction_tests() if isinstance(res, list) and len(res) > 0: self.test_id = res[0]['id'] self.test_ids = [x['id'] for x in res] else: self.test_id = None
def test_transaction_tests(self): res = trans.transaction_tests() match = [x for x in res if x['id'] == self.test_id] assert len(match) > 0