Ticket #4475: streamTest.2.diff
File streamTest.2.diff, 936 bytes (added by , 17 years ago) |
---|
-
regressiontests/serializers_regress/tests.py
327 327 string_data = serializers.serialize(format, [obj], indent=2) 328 328 329 329 # Check that the two are the same 330 self.assertEqual(string_data, stream. buffer())330 self.assertEqual(string_data, stream.getvalue()) 331 331 stream.close() 332 332 333 333 for format in serializers.get_serializer_formats(): 334 334 setattr(SerializerTests, 'test_'+format+'_serializer', curry(serializerTest, format)) 335 335 setattr(SerializerTests, 'test_'+format+'_serializer_fields', curry(fieldsTest, format)) 336 setattr(SerializerTests, 'test_'+format+'_serializer_stream', curry( fieldsTest, format))336 setattr(SerializerTests, 'test_'+format+'_serializer_stream', curry(streamTest, format))