summaryrefslogtreecommitdiff
path: root/bs4/testing.py
diff options
context:
space:
mode:
Diffstat (limited to 'bs4/testing.py')
-rw-r--r--bs4/testing.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bs4/testing.py b/bs4/testing.py
index 717e721..a3e0b38 100644
--- a/bs4/testing.py
+++ b/bs4/testing.py
@@ -132,6 +132,9 @@ class HTMLTreeBuilderSmokeTest(object):
self.assertTrue(soup.br.is_empty_element)
self.assertEqual(str(soup.br), "<br/>")
+ def test_nested_formatting_elements(self):
+ self.assertSoupEquals("<em><em></em></em>")
+
def test_comment(self):
# Comments are represented as Comment objects.
markup = "<p>foo<!--foobar-->baz</p>"