Package twisted :: Package test :: Module test_smtp :: Class AnotherSMTPTestCase
[show private | hide private]
[frames | no frames]

Class AnotherSMTPTestCase

TestCase --+
           |
          AnotherSMTPTestCase


Method Summary
  assert_(self, condition, message)
(inherited from TestCase)
  assertApproximates(self, first, second, tolerance, msg)
(inherited from TestCase)
  assertEqual(self, first, second, msg)
(inherited from TestCase)
  assertEquals(self, first, second, msg)
(inherited from TestCase)
  assertNotEqual(self, first, second, msg)
(inherited from TestCase)
  assertNotEquals(self, first, second, msg)
(inherited from TestCase)
  assertRaises(self, exception, f, *args, **kwargs)
(inherited from TestCase)
  fail(self, message)
(inherited from TestCase)
  failIf(self, condition, message)
(inherited from TestCase)
  failIfEqual(self, first, second, msg)
(inherited from TestCase)
  failUnless(self, condition, message)
(inherited from TestCase)
  failUnlessEqual(self, first, second, msg)
(inherited from TestCase)
  failUnlessRaises(self, exception, f, *args, **kwargs)
(inherited from TestCase)
  setUp(self)
(inherited from TestCase)
  tearDown(self)
(inherited from TestCase)
  testBuffer(self)

Class Variable Summary
list data
str from_
str helo_
list messages
str msg
str rcpt
str realfrom
list realto
list to_

Class Variable Details

data

Type:
list
Value:
[('', '220.*\r\n$', None, None),
 ('HELO foo.com\r\n', '250.*\r\n$', None, None),
 ('RSET\r\n', '250.*\r\n$', None, None),
 ('MAIL FROM:<moshez@foo.com>\r\n', '250.*\r\n', None, None),
 ('RCPT TO:<moshez@bar.com>\r\n', '250.*\r\n', None, None),
 ('DATA\r\n',
  '354.*\r\n',
  'From: Moshe\nTo: Moshe\n\nHi,\nhow are you?\n',
...                                                                    

from_

Type:
str
Value:
'@this,@is,@ignored:foo@bar.com'                                       

helo_

Type:
str
Value:
'foo.com'                                                              

messages

Type:
list
Value:
[('foo.com',
  'moshez@foo.com',
  ['moshez@bar.com'],
  'moshez@foo.com',
  ['moshez@bar.com'],
  'From: Moshe\nTo: Moshe\n\nHi,\nhow are you?\n'),
 ('foo.com',
  'tttt@rrr.com',
...                                                                    

msg

Type:
str
Value:
'''Subject: apa
To: foo

123
.
456
'''                                                                    

rcpt

Type:
str
Value:
'@ignore,@this,@too:bar@foo.com'                                       

realfrom

Type:
str
Value:
'foo@bar.com'                                                          

realto

Type:
list
Value:
['bar@foo.com']                                                        

to_

Type:
list
Value:
['@ignore,@this,@too:bar@foo.com']                                     

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:29:05 2003 http://epydoc.sf.net