diff options
| author | Danilo Bargen | 2013-02-25 23:02:42 +0100 |
|---|---|---|
| committer | Danilo Bargen | 2013-02-25 23:02:42 +0100 |
| commit | ec4d79bcaf08d577e8c44cad873515d018e21986 (patch) | |
| tree | ff892f3893d1d6acb5e607fc343a302d5d6720b9 /rest_framework/tests | |
| parent | 3e6f99e273b3ca4278c417f32f0db1b7bdfe408b (diff) | |
| download | django-rest-framework-ec4d79bcaf08d577e8c44cad873515d018e21986.tar.bz2 | |
Show class name in exception message
Diffstat (limited to 'rest_framework/tests')
| -rw-r--r-- | rest_framework/tests/serializer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/serializer.py b/rest_framework/tests/serializer.py index af84c46b..d4e9cc13 100644 --- a/rest_framework/tests/serializer.py +++ b/rest_framework/tests/serializer.py @@ -366,7 +366,7 @@ class ValidationTests(TestCase): try: serializer = BrokenModelSerializer() except AttributeError as e: - self.assertEquals(e.args[0], "Serializer class is missing 'model' Meta option") + self.assertEquals(e.args[0], "Serializer class 'BrokenModelSerializer' is missing 'model' Meta option") except: self.fail('Wrong exception type thrown.') |
