~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:34:14 UTC
  • Revision ID: scott@kitterman.com-20180302113414-uebh0a8rukpqmdba
More tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
692
692
>>> try: arobj = authres.AuthenticationResultsHeader.parse('Authentication-Results: mail.example.org; x-tls=pass version=TLSv1.2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256')
693
693
... except authres.SyntaxError as e: print(e)
694
694
 
 
695
>>> str(arobj.authserv_id)
 
696
'mail.example.org'
 
697
>>> str(arobj.results[0])
 
698
'x-tls=pass'
695
699
 
696
700
# Valid ptype (OK), unknown method (OK), unknown property (OKish)
697
701
>>> import authres