Package trac :: Package ticket :: Package tests :: Module notification :: Class NotificationTestCase

Class NotificationTestCase

source code

            object --+    
                     |    
unittest.case.TestCase --+
                         |
                        NotificationTestCase

Notification test cases that send email over SMTP
Nested Classes

Inherited from unittest.case.TestCase: failureException

Instance Methods
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
tearDown(self)
Signal the notification test suite that a test is over
source code
 
test_structure(self)
Basic SMTP message structure (headers, body)
source code
 
test_date(self)
Date format compliance (RFC822) we do not support 'military' format
source code
 
test_bcc_privacy(self)
Visibility of recipients
source code
 
test_short_login(self)
Email addresses without a FQDN
source code
 
test_default_domain(self)
Default domain name
source code
 
test_email_map(self)
Login-to-email mapping
source code
 
test_from_author(self)
Using the reporter or change author as the notification sender
source code
 
test_ignore_domains(self)
Non-SMTP domain exclusion
source code
 
test_admit_domains(self)
SMTP domain inclusion
source code
 
test_multiline_header(self)
Encoded headers split into multiple lines
source code
 
test_mimebody_b64(self)
MIME Base64/utf-8 encoding
source code
 
test_mimebody_qp(self)
MIME QP/utf-8 encoding
source code
 
test_mimebody_none_7bit(self)
MIME None encoding resulting in 7bit
source code
 
test_mimebody_none_8bit(self)
MIME None encoding resulting in 8bit
source code
 
test_md5_digest(self) source code
 
test_sha1_digest(self) source code
 
test_previous_cc_list(self)
Members removed from CC list receive notifications
source code
 
test_previous_owner(self)
Previous owner is notified when ticket is reassigned (#2311) if always_notify_owner is set to True
source code
 
test_props_format_ambiwidth_single(self) source code
 
test_props_format_ambiwidth_double(self) source code
 
test_props_format_obfuscated_email(self) source code
 
test_props_format_obfuscated_email_disabled(self) source code
 
test_props_format_wrap_leftside(self) source code
 
test_props_format_wrap_leftside_unicode(self) source code
 
test_props_format_wrap_rightside(self) source code
 
test_props_format_wrap_rightside_unicode(self) source code
 
test_props_format_wrap_bothsides(self) source code
 
test_props_format_wrap_bothsides_unicode(self) source code
 
test_props_format_wrap_ticket_10283(self) source code
 
test_notification_does_not_alter_ticket_instance(self) source code
 
test_notification_get_message_id_unicode(self) source code
 
test_mime_meta_characters_in_from_header(self)
MIME encoding with meta characters in From header
source code
 
test_mime_meta_characters_in_subject_header(self)
MIME encoding with meta characters in Subject header
source code

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, skipTest

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Class Variables

Inherited from unittest.case.TestCase: longMessage, maxDiff

Properties

Inherited from object: __class__

Method Details

setUp(self)

source code 
Hook method for setting up the test fixture before exercising it.
Overrides: unittest.case.TestCase.setUp
(inherited documentation)

tearDown(self)

source code 
Signal the notification test suite that a test is over
Overrides: unittest.case.TestCase.tearDown