Package pyzmail :: Package tests :: Module test_parse
[hide private]
[frames] | no frames]

Module test_parse

source code

Classes [hide private]
  Msg
mimic a email.Message
  TestParse
Functions [hide private]
 
load_tests(loader, tests, ignore) source code
 
additional_tests() source code
Variables [hide private]
  __package__ = 'pyzmail.tests'
  addr_spec = '(?:[a-zA-Z0-9_!#\\$\\%&\'*+/=?\\^`{}~|\\-]+(?:\\....
  atom = '[a-zA-Z0-9_!#\\$\\%&\'*+/=?\\^`{}~|\\-]+'
  atom_posfix_restricted = '[a-zA-Z0-9_#\\$&\'*+/=?\\^`{}~|\\-]+'
  atom_rfc2822 = '[a-zA-Z0-9_!#\\$\\%&\'*+/=?\\^`{}~|\\-]+'
  domain = '(?:[a-zA-Z0-9_!#\\$\\%&\'*+/=?\\^`{}~|\\-]+(?:\\.[a-...
  domain_lit = '\\[(?:\\\\\\S|[\\x21-\\x5a\\x5e-\\x7e])*\\]'
  dot_atom = '[a-zA-Z0-9_!#\\$\\%&\'*+/=?\\^`{}~|\\-]+(?:\\.[a-z...
  email_address_re = re.compile(r'^(?:[a-zA-Z0-9_!#\$%&\'\*\+/=\...
  invalid_chars_in_filename = '\x00\x01\x02\x03\x04\x05\x06\x07\...
  invalid_windows_name = ['CON', 'PRN', 'AUX', 'NUL', 'COM1', 'C...
  local = '(?:[a-zA-Z0-9_!#\\$\\%&\'*+/=?\\^`{}~|\\-]+(?:\\.[a-z...
  quoted = '"(?:\\\\[^\\r\\n]|[^\\\\"])*"'
Variables Details [hide private]

addr_spec

Value:
'(?:[a-zA-Z0-9_!#\\$\\%&\'*+/=?\\^`{}~|\\-]+(?:\\.[a-zA-Z0-9_!#\\$\\%&\
\'*+/=?\\^`{}~|\\-]+)*|"(?:\\\\[^\\r\\n]|[^\\\\"])*")\\@(?:[a-zA-Z0-9_\
!#\\$\\%&\'*+/=?\\^`{}~|\\-]+(?:\\.[a-zA-Z0-9_!#\\$\\%&\'*+/=?\\^`{}~|\
\\-]+)*|\\[(?:\\\\\\S|[\\x21-\\x5a\\x5e-\\x7e])*\\])'

domain

Value:
'(?:[a-zA-Z0-9_!#\\$\\%&\'*+/=?\\^`{}~|\\-]+(?:\\.[a-zA-Z0-9_!#\\$\\%&\
\'*+/=?\\^`{}~|\\-]+)*|\\[(?:\\\\\\S|[\\x21-\\x5a\\x5e-\\x7e])*\\])'

dot_atom

Value:
'[a-zA-Z0-9_!#\\$\\%&\'*+/=?\\^`{}~|\\-]+(?:\\.[a-zA-Z0-9_!#\\$\\%&\'*\
+/=?\\^`{}~|\\-]+)*'

email_address_re

Value:
re.compile(r'^(?:[a-zA-Z0-9_!#\$%&\'\*\+/=\?\^`\{\}~\|-]+(?:\.[a-zA-Z0\
-9_!#\$%&\'\*\+/=\?\^`\{\}~\|-]+)*|"(?:\\[^\r\n]|[^\\"])*")@(?:[a-zA-Z\
0-9_!#\$%&\'\*\+/=\?\^`\{\}~\|-]+(?:\.[a-zA-Z0-9_!#\$%&\'\*\+/=\?\^`\{\
\}~\|-]+)*|\[(?:\\\S|[!-Z\^-~])*\])$')

invalid_chars_in_filename

Value:
'''\x00\x01\x02\x03\x04\x05\x06\x07\x08\t
\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\
\x1d\x1e\x1f<>:"/\\|?*\\%\''''

invalid_windows_name

Value:
['CON',
 'PRN',
 'AUX',
 'NUL',
 'COM1',
 'COM2',
 'COM3',
 'COM4',
...

local

Value:
'(?:[a-zA-Z0-9_!#\\$\\%&\'*+/=?\\^`{}~|\\-]+(?:\\.[a-zA-Z0-9_!#\\$\\%&\
\'*+/=?\\^`{}~|\\-]+)*|"(?:\\\\[^\\r\\n]|[^\\\\"])*")'