From 0e7d3ee60138f8e81e89e820a6fb2910e0bdde09 Mon Sep 17 00:00:00 2001
From: pompolic <pompolic@special-circumstanc.es>
Date: Wed, 29 Jun 2022 20:48:20 +0200
Subject: [PATCH] Figuring out again how to test arguments passed to the
 constructor

---
 gdb-port/tests/unit/ast.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb-port/tests/unit/ast.py b/gdb-port/tests/unit/ast.py
index 0e2a9d5..2a5f43e 100644
--- a/gdb-port/tests/unit/ast.py
+++ b/gdb-port/tests/unit/ast.py
@@ -33,12 +33,12 @@ class HParseResultCreation(unittest.TestCase):
 		hpr_patcher.start()
 		hpr = HParseResult(0xdeadbeef)
 		tok = hpr.make_HParsedToken()
+		print(HParsedToken.call_args)
 		hpr_patcher.stop()
 		hpt_patcher.stop()
 		gdbv_patcher.stop()
 		#TODO: what are the invariants we need to test here?
 		# e.g.: tok.address = hpr.ast.value
-		self.assertEqual(tok.address, hpr.ast)
 
 	def test_make_HParsedToken_if_no_ast(self):
 		gdbv_patcher = unittest.mock.patch('gdb.Value', autospec=True)
-- 
GitLab