diff options
| author | Tom Christie | 2013-03-19 14:26:48 +0000 |
|---|---|---|
| committer | Tom Christie | 2013-03-19 14:26:48 +0000 |
| commit | b2dc66448503c2120d943a2f282eab235afc67ba (patch) | |
| tree | 8115409050b9cc13eac7e6f1e32f7e6014006692 /rest_framework/tests/serializer.py | |
| parent | 09e4ee7ae332326e77b23bac1539d31e582419e9 (diff) | |
| download | django-rest-framework-b2dc66448503c2120d943a2f282eab235afc67ba.tar.bz2 | |
Basic bulk create and bulk update
Diffstat (limited to 'rest_framework/tests/serializer.py')
| -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 beb372c2..9c0fdd78 100644 --- a/rest_framework/tests/serializer.py +++ b/rest_framework/tests/serializer.py @@ -266,7 +266,7 @@ class ValidationTests(TestCase): Data of the wrong type is not valid. """ data = ['i am', 'a', 'list'] - serializer = CommentSerializer(self.comment, data=data, many=True) + serializer = CommentSerializer([self.comment], data=data, many=True) self.assertEqual(serializer.is_valid(), False) self.assertTrue(isinstance(serializer.errors, list)) |
