diff --git a/replace.py b/replace.py index f0b4763b9faf0b6613b727c241053fa34add11be_cmVwbGFjZS5weQ==..ba5f47b1001290f4adeb6b8b996cbf24483e1031_cmVwbGFjZS5weQ== 100755 --- a/replace.py +++ b/replace.py @@ -81,8 +81,6 @@ base_img = '<img src="%s" />' imgsrc = base_img % img_url - print "*" * 35 - print "Testing text replacement" new_text, values = insert_tracker_in_text(text, 'BASE', '1') assert len(values) == 1, "Values should contain only one record" @@ -93,9 +91,8 @@ assert track_uuid, "Track uuid should not be None" real_url = value.get("real_url", None) - print "Real URL was: %s" % real_url assert real_url == url, "Real URL should have been %s, not %s" % ( url, real_url) assert new_text == '%s/%s' % ('BASE', track_uuid) @@ -97,9 +94,7 @@ assert real_url == url, "Real URL should have been %s, not %s" % ( url, real_url) assert new_text == '%s/%s' % ('BASE', track_uuid) - print "*" * 35 - print "Testing HTML replacement" new_html, values = insert_tracker_in_html(html, 'BASE', '1') @@ -104,6 +99,5 @@ new_html, values = insert_tracker_in_html(html, 'BASE', '1') - print new_html assert len(values) == 1, \ "Values should have one record, not %s" % len(values) @@ -113,10 +107,9 @@ assert track_uuid, "Track uuid should not be None" real_url = value.get("real_url", None) - print "Real URL was: %s" % real_url assert real_url == url, "Real URL should have been %s, not %s" % ( url, real_url) expected_html = base_html % ('BASE/' + track_uuid) assert new_html == expected_html @@ -117,10 +110,8 @@ assert real_url == url, "Real URL should have been %s, not %s" % ( url, real_url) expected_html = base_html % ('BASE/' + track_uuid) assert new_html == expected_html - print "*" * 35 - print "Testing img src replacement" new_html, values = insert_tracker_in_html(imgsrc, 'BASE', '1') @@ -125,6 +116,5 @@ new_html, values = insert_tracker_in_html(imgsrc, 'BASE', '1') - print new_html assert len(values) == 1, \ "Values should have one record, not %s" % len(values) @@ -134,7 +124,6 @@ assert track_uuid, "Track uuid should not be None" real_url = value.get("real_url", None) - print "Real URL was: %s" % real_url assert real_url == img_url, "Real URL should have been %s, not %s" % ( img_url, real_url)