From e4c20a0c0f2e0ce6aab260c50c75b72a6b5e6189 Mon Sep 17 00:00:00 2001 From: epiphyte Date: Fri, 27 Dec 2024 10:33:17 -0500 Subject: [PATCH] Add update() test --- synapse/tests/test_exc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synapse/tests/test_exc.py b/synapse/tests/test_exc.py index 0428303000d..604955ba3de 100644 --- a/synapse/tests/test_exc.py +++ b/synapse/tests/test_exc.py @@ -27,6 +27,9 @@ def test_basic(self): e.setdefault('defv', 2) self.eq("SynErr: defv=1 foo='words' hehe=1234 mesg='words'", str(e)) + e.update({'foo': 'newwords', 'bar': 'baz'}) + self.eq("SynErr: bar='baz' defv=1 foo='newwords' hehe=1234 mesg='words'", str(e)) + self.eq(e.errname, 'SynErr') e2 = s_exc.BadTypeValu(mesg='haha')