summaryrefslogtreecommitdiffstats
path: root/Lib/test/mailcap.txt
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2011-08-22 06:05:44 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2011-08-22 06:05:44 (GMT)
commit029ba2b8cd31728fb58dd082c44827a0703bff4a (patch)
tree8358bc76e73d4b613a731ae4f322b3a1a6ed958d /Lib/test/mailcap.txt
parent4ecf6cfc202c035a1d9cfdbf0913c0b1f0f89955 (diff)
downloadcpython-029ba2b8cd31728fb58dd082c44827a0703bff4a.zip
cpython-029ba2b8cd31728fb58dd082c44827a0703bff4a.tar.gz
cpython-029ba2b8cd31728fb58dd082c44827a0703bff4a.tar.bz2
Add unit tests for the mailcap module. Patch by Gregory Nofi (closes #6484)
Diffstat (limited to 'Lib/test/mailcap.txt')
-rw-r--r--Lib/test/mailcap.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/Lib/test/mailcap.txt b/Lib/test/mailcap.txt
new file mode 100644
index 0000000..f61135d
--- /dev/null
+++ b/Lib/test/mailcap.txt
@@ -0,0 +1,39 @@
+# Mailcap file for test_mailcap; based on RFC 1524
+# Referred to by test_mailcap.py
+
+#
+# This is a comment.
+#
+
+application/frame; showframe %s; print="cat %s | lp"
+application/postscript; ps-to-terminal %s;\
+ needsterminal
+application/postscript; ps-to-terminal %s; \
+ compose=idraw %s
+application/x-dvi; xdvi %s
+application/x-movie; movieplayer %s; compose=moviemaker %s; \
+ description="Movie"; \
+ x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
+application/*; echo "This is \"%t\" but \
+ is 50 \% Greek to me" \; cat %s; copiousoutput
+
+audio/basic; showaudio %s; compose=audiocompose %s; edit=audiocompose %s;\
+description="An audio fragment"
+audio/* ; /usr/local/bin/showaudio %t
+
+image/rgb; display %s
+#image/gif; display %s
+image/x-xwindowdump; display %s
+
+# The continuation char shouldn't \
+# make a difference in a comment.
+
+message/external-body; showexternal %s %{access-type} %{name} %{site} \
+ %{directory} %{mode} %{server}; needsterminal; composetyped = extcompose %s; \
+ description="A reference to data stored in an external location"
+
+text/richtext; shownonascii iso-8859-8 -e richtext -p %s; test=test "`echo \
+ %{charset} | tr '[A-Z]' '[a-z]'`" = iso-8859-8; copiousoutput
+
+video/mpeg; mpeg_play %s
+video/*; animate %s