From 5c7ff8e02ac0a2fe2966b04cb6862940face28c0 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Mon, 28 Feb 2011 12:25:51 -0500 Subject: Renamed replaceWith to replace_with. --- tests/test_tree.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_tree.py') 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 = "Foo" 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("Argh!") - 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( "

There's no business like show business

") 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 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( -- cgit v1.2.3