Skip to content

Commit

Permalink
Use new XML checks.
Browse files Browse the repository at this point in the history
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
  • Loading branch information
robbat2 authored and Robin H. Johnson committed Apr 20, 2016
1 parent 4d8c6bd commit c1f7ad5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions s3tests/functional/test_s3_website.py
Expand Up @@ -20,8 +20,11 @@
choose_bucket_prefix,
)

from ..common import with_setup_kwargs
from ..xmlhelper import normalize_xml_whitespace
from ..common import (
with_setup_kwargs,
normalize_xml_whitespace,
assert_xml_equal
)

IGNORE_FIELD = 'IGNORETHIS'

Expand Down Expand Up @@ -86,6 +89,7 @@ def _test_website_prep(bucket, xml_template, hardcoded_fields = {}):
config_xml2 = bucket.get_website_configuration_xml()
config_xml2 = normalize_xml_whitespace(config_xml2, pretty_print=True) # For us to read
#print("config_xml2\n", config_xml2)
assert_xml_equal(config_xml1, config_xml2)
eq (config_xml1, config_xml2)
f['WebsiteConfiguration'] = config_xml2
return f
Expand Down

0 comments on commit c1f7ad5

Please sign in to comment.