Skip to content
Permalink
Browse files

Fixup tests for assertRaisesRegex.

  • Loading branch information
lamby committed Dec 5, 2019
1 parent 077e7b6 commit abb41cc94a25c0a6abea2bc4c71c9e32a18e74b4
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/test_validation.py
@@ -15,7 +15,7 @@ def test_msg_too_long_result(self):
# Arbitrarily chosen 'simple' error
backend = Backend()
with self.assertRaisesRegex(
MsgTooLong, r"MsgTooLong: msg_too_long",
MsgTooLong, r"msg_too_long",
):
backend.validate(
'application/json',
@@ -26,8 +26,7 @@ def test_msg_too_long_result(self):
def test_channel_not_found_result(self):
backend = Backend()
with self.assertRaisesRegex(
ChannelNotFound,
r"ChannelNotFound: channel 'bad-channel' could not be found",
ChannelNotFound, r"channel 'bad-channel' could not be found",
):
backend.validate(
'application/json',

0 comments on commit abb41cc

Please sign in to comment.
You can’t perform that action at this time.