"""Test empty selectors.""" from .. import util class TestEmpty(util.TestCase): """Test empty selectors.""" def test_empty(self): """Test empty.""" markup = """

Some text in a paragraph.

Link Direct child
          
         
        
        
        
""" self.assert_selector( markup, "body :empty", ["4", "5", "6", "8"], flags=util.HTML )