diff options
| author | Federico Bond <federicobond@gmail.com> | 2018-06-25 09:30:58 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2018-06-25 09:30:58 +0200 |
| commit | 4c36414323d9035a93a2b7a54ff5281116950fe1 (patch) | |
| tree | 6bc596c759876ea436dfd99bd206362c96b16181 /tests/basic/tests.py | |
| parent | 02cd16a7a04529c726e5bb5a13d5979119f25c7d (diff) | |
Fixed #29517 -- Rephrased error message when passing incorrect kwarg to model constructor
Diffstat (limited to 'tests/basic/tests.py')
| -rw-r--r-- | tests/basic/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic/tests.py b/tests/basic/tests.py index 76d92a7591..d82fc54675 100644 --- a/tests/basic/tests.py +++ b/tests/basic/tests.py @@ -65,7 +65,7 @@ class ModelInstanceCreationTests(TestCase): self.assertEqual(a.headline, 'Fourth article') def test_cannot_create_instance_with_invalid_kwargs(self): - with self.assertRaisesMessage(TypeError, "'foo' is an invalid keyword argument for this function"): + with self.assertRaisesMessage(TypeError, "Article() got an unexpected keyword argument 'foo'"): Article( id=None, headline='Some headline', |
