Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 1090:9b910e8d987d
removed Log
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 10 Sep 2002 00:19:55 +0000 |
| parents | 04a6b3bfbf23 |
| children | 854d45f8b745 |
comparison
equal
deleted
inserted
replaced
| 1089:43ab730ee194 | 1090:9b910e8d987d |
|---|---|
| 6 # | 6 # |
| 7 # This module is distributed in the hope that it will be useful, | 7 # This module is distributed in the hope that it will be useful, |
| 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 10 # | 10 # |
| 11 # $Id: test_mailgw.py,v 1.26 2002-09-09 23:55:29 richard Exp $ | 11 # $Id: test_mailgw.py,v 1.27 2002-09-10 00:19:54 richard Exp $ |
| 12 | 12 |
| 13 import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib | 13 import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib |
| 14 | 14 |
| 15 # Note: Should parse emails according to RFC2822 instead of performing a | 15 # Note: Should parse emails according to RFC2822 instead of performing a |
| 16 # literal string comparision. Parsing the messages allows the tests to work for | 16 # literal string comparision. Parsing the messages allows the tests to work for |
| 777 unittest.makeSuite(ExtMailgwTestCase, 'test') | 777 unittest.makeSuite(ExtMailgwTestCase, 'test') |
| 778 ] | 778 ] |
| 779 return unittest.TestSuite(l) | 779 return unittest.TestSuite(l) |
| 780 | 780 |
| 781 | 781 |
| 782 # | |
| 783 # $Log: not supported by cvs2svn $ | |
| 784 # Revision 1.25 2002/07/29 00:56:06 richard | |
| 785 # Removed the unnecessary volatiledb and the related complications. Security | |
| 786 # much simpler and self-contained now. | |
| 787 # | |
| 788 # Revision 1.24 2002/07/26 08:27:00 richard | |
| 789 # Very close now. The cgi and mailgw now use the new security API. The two | |
| 790 # templates have been migrated to that setup. Lots of unit tests. Still some | |
| 791 # issue in the web form for editing Roles assigned to users. | |
| 792 # | |
| 793 # Revision 1.23 2002/07/14 02:02:43 richard | |
| 794 # Fixed the unit tests for the new multilist controls in the mailgw | |
| 795 # | |
| 796 # Revision 1.22 2002/07/09 01:21:24 richard | |
| 797 # Added ability for unit tests to turn off exception handling in mailgw so | |
| 798 # that exceptions are reported earlier (and hence make sense). | |
| 799 # | |
| 800 # Revision 1.21 2002/06/18 03:59:59 dman13 | |
| 801 # Updated message strings to match the RFC822 address quoting performed | |
| 802 # by the 'email' and 'rfc822' modules. The verification really should | |
| 803 # use a RFC2822 message parser rather than literal string comparisions | |
| 804 # to allow for legal variations in messages. | |
| 805 # | |
| 806 # Revision 1.20 2002/05/29 01:16:17 richard | |
| 807 # Sorry about this huge checkin! It's fixing a lot of related stuff in one go | |
| 808 # though. | |
| 809 # | |
| 810 # . #541941 ] changing multilink properties by mail | |
| 811 # . #526730 ] search for messages capability | |
| 812 # . #505180 ] split MailGW.handle_Message | |
| 813 # - also changed cgi client since it was duplicating the functionality | |
| 814 # . build htmlbase if tests are run using CVS checkout (removed note from | |
| 815 # installation.txt) | |
| 816 # . don't create an empty message on email issue creation if the email is empty | |
| 817 # | |
| 818 # Revision 1.19 2002/05/23 04:26:05 richard | |
| 819 # 'I must run unit tests before committing\n' * 100 | |
| 820 # | |
| 821 # Revision 1.18 2002/05/15 03:27:16 richard | |
| 822 # . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope | |
| 823 # (thanks dman) | |
| 824 # . fixed some sorting issues that were breaking some unit tests under py2.2 | |
| 825 # . mailgw test output dir was confusing the init test (but only on 2.2 *shrug*) | |
| 826 # | |
| 827 # fixed bug in the init unit test that meant only the bsddb test ran if it | |
| 828 # could (it clobbered the anydbm test) | |
| 829 # | |
| 830 # Revision 1.17 2002/05/02 07:56:34 richard | |
| 831 # . added option to automatically add the authors and recipients of messages | |
| 832 # to the nosy lists with the options ADD_AUTHOR_TO_NOSY (default 'new') and | |
| 833 # ADD_RECIPIENTS_TO_NOSY (default 'new'). These settings emulate the current | |
| 834 # behaviour. Setting them to 'yes' will add the author/recipients to the nosy | |
| 835 # on messages that create issues and followup messages. | |
| 836 # . added missing documentation for a few of the config option values | |
| 837 # | |
| 838 # Revision 1.16 2002/03/19 21:58:11 grubert | |
| 839 # . for python2.1 test_mailgw compareString allows an extra trailing empty line (for quopri. | |
| 840 # | |
| 841 # Revision 1.15 2002/03/19 06:37:00 richard | |
| 842 # Made the email checking spit out a diff - much easier to spot the problem! | |
| 843 # | |
| 844 # Revision 1.14 2002/03/18 18:32:00 rochecompaan | |
| 845 # All messages sent to the nosy list are now encoded as quoted-printable. | |
| 846 # | |
| 847 # Revision 1.13 2002/02/15 07:08:45 richard | |
| 848 # . Alternate email addresses are now available for users. See the MIGRATION | |
| 849 # file for info on how to activate the feature. | |
| 850 # | |
| 851 # Revision 1.12 2002/02/15 00:13:38 richard | |
| 852 # . #503204 ] mailgw needs a default class | |
| 853 # - partially done - the setting of additional properties can wait for a | |
| 854 # better configuration system. | |
| 855 # | |
| 856 # Revision 1.11 2002/02/14 23:38:12 richard | |
| 857 # Fixed the unit tests for the mailgw re: the x-roundup-name header. | |
| 858 # Also made the test runner more user-friendly: | |
| 859 # ./run_tests - detect all tests in test/test_<name>.py and run them | |
| 860 # ./run_tests <name> - run only test/test_<name>.py | |
| 861 # eg ./run_tests mailgw - run the mailgw test from test/test_mailgw.py | |
| 862 # | |
| 863 # Revision 1.10 2002/02/12 08:08:55 grubert | |
| 864 # . Clean up mail handling, multipart handling. | |
| 865 # | |
| 866 # Revision 1.9 2002/02/05 14:15:29 grubert | |
| 867 # . respect encodings in non multipart messages. | |
| 868 # | |
| 869 # Revision 1.8 2002/02/04 09:40:21 grubert | |
| 870 # . add test for multipart messages with first part being encoded. | |
| 871 # | |
| 872 # Revision 1.7 2002/01/22 11:54:45 rochecompaan | |
| 873 # Fixed status change in mail gateway. | |
| 874 # | |
| 875 # Revision 1.6 2002/01/21 10:05:48 rochecompaan | |
| 876 # Feature: | |
| 877 # . the mail gateway now responds with an error message when invalid | |
| 878 # values for arguments are specified for link or multilink properties | |
| 879 # . modified unit test to check nosy and assignedto when specified as | |
| 880 # arguments | |
| 881 # | |
| 882 # Fixed: | |
| 883 # . fixed setting nosy as argument in subject line | |
| 884 # | |
| 885 # Revision 1.5 2002/01/15 00:12:40 richard | |
| 886 # #503340 ] creating issue with [asignedto=p.ohly] | |
| 887 # | |
| 888 # Revision 1.4 2002/01/14 07:12:15 richard | |
| 889 # removed file writing from tests... | |
| 890 # | |
| 891 # Revision 1.3 2002/01/14 02:20:15 richard | |
| 892 # . changed all config accesses so they access either the instance or the | |
| 893 # config attriubute on the db. This means that all config is obtained from | |
| 894 # instance_config instead of the mish-mash of classes. This will make | |
| 895 # switching to a ConfigParser setup easier too, I hope. | |
| 896 # | |
| 897 # At a minimum, this makes migration a _little_ easier (a lot easier in the | |
| 898 # 0.5.0 switch, I hope!) | |
| 899 # | |
| 900 # Revision 1.2 2002/01/11 23:22:29 richard | |
| 901 # . #502437 ] rogue reactor and unittest | |
| 902 # in short, the nosy reactor was modifying the nosy list. That code had | |
| 903 # been there for a long time, and I suspsect it was there because we | |
| 904 # weren't generating the nosy list correctly in other places of the code. | |
| 905 # We're now doing that, so the nosy-modifying code can go away from the | |
| 906 # nosy reactor. | |
| 907 # | |
| 908 # Revision 1.1 2002/01/02 02:31:38 richard | |
| 909 # Sorry for the huge checkin message - I was only intending to implement #496356 | |
| 910 # but I found a number of places where things had been broken by transactions: | |
| 911 # . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename | |
| 912 # for _all_ roundup-generated smtp messages to be sent to. | |
| 913 # . the transaction cache had broken the roundupdb.Class set() reactors | |
| 914 # . newly-created author users in the mailgw weren't being committed to the db | |
| 915 # | |
| 916 # Stuff that made it into CHANGES.txt (ie. the stuff I was actually working | |
| 917 # on when I found that stuff :): | |
| 918 # . #496356 ] Use threading in messages | |
| 919 # . detectors were being registered multiple times | |
| 920 # . added tests for mailgw | |
| 921 # . much better attaching of erroneous messages in the mail gateway | |
| 922 # | |
| 923 # | |
| 924 # | |
| 925 # | |
| 926 # vim: set filetype=python ts=4 sw=4 et si | 782 # vim: set filetype=python ts=4 sw=4 et si |
