Skip to content

Commit

Permalink
Add update() test
Browse files Browse the repository at this point in the history
  • Loading branch information
vEpiphyte committed Dec 27, 2024
1 parent 8c2cd58 commit e4c20a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synapse/tests/test_exc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit e4c20a0

Please sign in to comment.