~djfroofy/txaws/930359-headers

« back to all changes in this revision

Viewing changes to txaws/s3/tests/test_acls.py

  • Committer: Duncan McGreggor
  • Date: 2012-01-26 23:07:01 UTC
  • mfrom: (122.1.11 920309-fix-ca-certs)
  • Revision ID: duncan@dreamhost.com-20120126230701-3faby2yptkwfbktg
This change fixes issues with testing of SSL certs on Mac OS X. Additionally,
it adds unit tests where there were none for get_ca_certs.

Reviewers: Stephon Striplin, Jamu Kakar.
Fixes: https://bugs.launchpad.net/txaws/+bug/920309

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        grantee = acls.Grantee(email_address="BucketOwnersEmail@amazon.com")
42
42
        xml_bytes = grantee.to_xml()
43
43
        self.assertEquals(xml_bytes, """\
44
 
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AmazonCustomerByEmail">
 
44
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\
 
45
 xsi:type="AmazonCustomerByEmail">
45
46
  <EmailAddress>BucketOwnersEmail@amazon.com</EmailAddress>
46
47
</Grantee>
47
48
""")
51
52
            uri='http://acs.amazonaws.com/groups/global/AuthenticatedUsers')
52
53
        xml_bytes = grantee.to_xml()
53
54
        self.assertEquals(xml_bytes, """\
54
 
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Group">
 
55
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\
 
56
 xsi:type="Group">
55
57
  <URI>http://acs.amazonaws.com/groups/global/AuthenticatedUsers</URI>
56
58
</Grantee>
57
59
""")