Fixed tests

This commit is contained in:
Oscar Vilaplana 2013-05-25 15:02:06 +02:00
parent a1deb5eac7
commit ff55b71b83

View File

@ -130,12 +130,12 @@ class TestRootView(TestCase):
'max_length': 100, 'max_length': 100,
'read_only': False, 'read_only': False,
'required': True, 'required': True,
'type': 'String', 'type': 'CharField',
}, },
'id': { 'id': {
'read_only': True, 'read_only': True,
'required': False, 'required': False,
'type': 'Integer', 'type': 'IntegerField',
}, },
} }
self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.status_code, status.HTTP_200_OK)
@ -264,12 +264,12 @@ class TestInstanceView(TestCase):
'max_length': 100, 'max_length': 100,
'read_only': False, 'read_only': False,
'required': True, 'required': True,
'type': 'String', 'type': 'CharField',
}, },
'id': { 'id': {
'read_only': True, 'read_only': True,
'required': False, 'required': False,
'type': 'Integer', 'type': 'IntegerField',
}, },
} }
self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.status_code, status.HTTP_200_OK)