diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-28 12:25:51 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-28 12:25:51 -0500 |
commit | 5c7ff8e02ac0a2fe2966b04cb6862940face28c0 (patch) | |
tree | 3b832c107233b60e57c8199a8141d6fe7738073d /tests | |
parent | 270cc37956de4ed1c4025b0d56aaf34a75d080d5 (diff) |
Renamed replaceWith to replace_with.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_tree.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_tree.py b/tests/test_tree.py index c61b326..f2989fe 100644 --- a/tests/test_tree.py +++ b/tests/test_tree.py @@ -557,12 +557,12 @@ class TestTreeModification(SoupTest): text = "<a><b></b><c>Foo<d></d></c></a><a><e></e></a>" soup = self.soup(text) c = soup.c - soup.c.replaceWith(c) + soup.c.replace_with(c) self.assertEquals(soup.decode(), self.document_for(text)) def test_replace_final_node(self): soup = self.soup("<b>Argh!</b>") - soup.find(text="Argh!").replaceWith("Hooray!") + soup.find(text="Argh!").replace_with("Hooray!") new_text = soup.find(text="Hooray!") b = soup.b self.assertEqual(new_text.previous, b) @@ -635,7 +635,7 @@ class TestTreeModification(SoupTest): soup = self.soup( "<p>There's <b>no</b> business like <b>show</b> business</p>") no, show = soup.find_all('b') - show.replaceWith(no) + show.replace_with(no) self.assertEquals( soup.decode(), self.document_for( @@ -654,7 +654,7 @@ class TestTreeModification(SoupTest): # right") with the <f> tag ("refuse"). remove_tag = soup.b move_tag = soup.f - remove_tag.replaceWith(move_tag) + remove_tag.replace_with(move_tag) self.assertEqual( soup.decode(), self.document_for( |