diff options
author | Leonard Richardson <leonardr@segfault.org> | 2013-05-06 17:56:35 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2013-05-06 17:56:35 -0400 |
commit | 3ad71fceec0002be87306174f0b2464cc2342a7e (patch) | |
tree | 418b5d3baed56248f7536dfe8c4f758acb36283d /bs4/tests/test_tree.py | |
parent | 6bdd65ceb1177d0e5d50bbe51f21b1209c72b599 (diff) |
Fix a bug by which keyword arguments to find_parent() were not being passed on. [bug=1126734]
Diffstat (limited to 'bs4/tests/test_tree.py')
-rw-r--r-- | bs4/tests/test_tree.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bs4/tests/test_tree.py b/bs4/tests/test_tree.py index a4e2a8a..a5e761f 100644 --- a/bs4/tests/test_tree.py +++ b/bs4/tests/test_tree.py @@ -425,6 +425,7 @@ class TestParentOperations(TreeTest): def test_find_parent(self): self.assertEqual(self.start.find_parent('ul')['id'], 'bottom') + self.assertEqual(self.start.find_parent('ul', id='top')['id'], 'top') def test_parent_of_text_element(self): text = self.tree.find(text="Start here") |