summaryrefslogtreecommitdiff
path: root/bs4/tests/test_navigablestring.py
diff options
context:
space:
mode:
Diffstat (limited to 'bs4/tests/test_navigablestring.py')
-rw-r--r--bs4/tests/test_navigablestring.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bs4/tests/test_navigablestring.py b/bs4/tests/test_navigablestring.py
index 649acc0..e4c179e 100644
--- a/bs4/tests/test_navigablestring.py
+++ b/bs4/tests/test_navigablestring.py
@@ -64,7 +64,7 @@ class TestNavigableStringSubclasses(SoupTest):
cdata = CData("foo")
soup.insert(1, cdata)
assert str(soup) == "<![CDATA[foo]]>"
- assert soup.find(text="foo") == "foo"
+ assert soup.find(string="foo") == "foo"
assert soup.contents[0] == "foo"
def test_cdata_is_never_formatted(self):
@@ -103,7 +103,7 @@ class TestNavigableStringSubclasses(SoupTest):
"<div>text</div><script>text</script><style>text</style>"
)
assert [NavigableString, Script, Stylesheet] == [
- x.__class__ for x in soup.find_all(text=True)
+ x.__class__ for x in soup.find_all(string=True)
]
# The TemplateString is a little unusual because it's generally found