diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-28 12:47:07 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-28 12:47:07 -0500 |
commit | b01f9312a13198d249060dac34ab12629285cdb2 (patch) | |
tree | cde0d2f819a9a9ce491730af90dc5be3f99b0889 /tests/test_tree.py | |
parent | bf7cde37825af8c30a023ec894ba90d5bb0452a3 (diff) | |
parent | 447a2243c9997082704b33cc69f2fe1024034f68 (diff) |
Miscellaneous cleanup.
Diffstat (limited to 'tests/test_tree.py')
-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( |