summaryrefslogtreecommitdiff
path: root/tests/many_to_many
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-03-15 16:27:57 -0700
committerTim Graham <timograham@gmail.com>2019-03-15 19:27:57 -0400
commit95b7699ffc4bdb32a504fccfd127f1b76a8a1d1c (patch)
tree436ce672484e93cae672f96d8f91d88ed4e02912 /tests/many_to_many
parent58ad030d05fa50cfed327368ab61defca3303e02 (diff)
Cleaned up exception message checking in some tests.
Diffstat (limited to 'tests/many_to_many')
-rw-r--r--tests/many_to_many/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/many_to_many/tests.py b/tests/many_to_many/tests.py
index 098cd29e46..f0156bbe8d 100644
--- a/tests/many_to_many/tests.py
+++ b/tests/many_to_many/tests.py
@@ -63,7 +63,8 @@ class ManyToManyTests(TestCase):
)
# Adding an object of the wrong type raises TypeError
- with self.assertRaisesMessage(TypeError, "'Publication' instance expected, got <Article"):
+ msg = "'Publication' instance expected, got <Article: Django lets you create Web apps easily>"
+ with self.assertRaisesMessage(TypeError, msg):
with transaction.atomic():
a6.publications.add(a5)