+ def test_large_picture
+ picture = gpx_files(:public_trace_file).large_picture
+ trace = Trace.create
+
+ trace.large_picture = picture
+ assert_equal "7c841749e084ee4a5d13f12cd3bef456", md5sum(File.new(trace.large_picture_name))
+ assert_equal picture, trace.large_picture
+
+ trace.destroy
+ end
+
+ def test_icon_picture
+ picture = gpx_files(:public_trace_file).icon_picture
+ trace = Trace.create
+
+ trace.icon_picture = picture
+ assert_equal "b47baf22ed0e85d77e808694fad0ee27", md5sum(File.new(trace.icon_picture_name))
+ assert_equal picture, trace.icon_picture
+
+ trace.destroy
+ end
+