Ticket #4475: streamTest.2.diff

File streamTest.2.diff, 936 bytes (added by ian.g.kelly@…, 17 years ago)
  • regressiontests/serializers_regress/tests.py

     
    327327    string_data = serializers.serialize(format, [obj], indent=2)
    328328
    329329    # Check that the two are the same
    330     self.assertEqual(string_data, stream.buffer())
     330    self.assertEqual(string_data, stream.getvalue())
    331331    stream.close()
    332332   
    333333for format in serializers.get_serializer_formats():
    334334    setattr(SerializerTests, 'test_'+format+'_serializer', curry(serializerTest, format))
    335335    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))
Back to Top