aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/serializer.py
diff options
context:
space:
mode:
authorTom Christie2011-06-21 23:01:41 +0100
committerTom Christie2011-06-21 23:01:41 +0100
commit82de0cf50a6f4ac2a3646a2524d149b7e7c85b2c (patch)
tree89e4cadadc02f2a87fff4c21dbdfc48039467770 /djangorestframework/tests/serializer.py
parentf02a4e189063cbe67c3e452e06542f0856863f41 (diff)
downloaddjango-rest-framework-82de0cf50a6f4ac2a3646a2524d149b7e7c85b2c.tar.bz2
Decimals are a protected_type - let's leave them up to the renderer to deal with
Diffstat (limited to 'djangorestframework/tests/serializer.py')
-rw-r--r--djangorestframework/tests/serializer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/tests/serializer.py b/djangorestframework/tests/serializer.py
index 783e941e..9f629050 100644
--- a/djangorestframework/tests/serializer.py
+++ b/djangorestframework/tests/serializer.py
@@ -18,7 +18,7 @@ class TestObjectToData(TestCase):
def test_decimal(self):
"""Decimals need to be converted to a string representation."""
- self.assertEquals(self.serialize(decimal.Decimal('1.5')), '1.5')
+ self.assertEquals(self.serialize(decimal.Decimal('1.5')), decimal.Decimal('1.5'))
def test_function(self):
"""Functions with no arguments should be called."""