~ar-python-hackers/authentication-results-python/trunk

« back to all changes in this revision

Viewing changes to authres/tests

  • Committer: Scott Kitterman
  • Date: 2018-03-02 11:41:29 UTC
  • Revision ID: scott@kitterman.com-20180302114129-hfhdbd80vl4qvrte
Another test (LP: #1704482) - error still generated as expected

Show diffs side-by-side

added added

removed removed

Lines of Context:
739
739
'x-tls'
740
740
'pass'
741
741
 
 
742
# Repeat authserv_id for each result (invalid)
 
743
>>> import authres
 
744
>>> try: arobj = authres.AuthenticationResultsHeader.parse('authentication-results: thehesiod.com; dkim=none (message not signed) header.d=none;thehesiod.com; dmarc=none action=none header.from=hotmail.com;')
 
745
... except authres.SyntaxError as e: print(e)
 
746
Syntax error: Expected "=" at: ; dmarc=none action=none header.from=hot...
 
747
 
742
748
# vim:sw=4 sts=4