File size: 588 Bytes
065fee7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""Test host selectors."""
from .. import util


class TestHost(util.TestCase):
    """Test host selectors."""

    MARKUP = """<h1>header</h1><div><p>some text</p></div>"""

    def test_host(self):
        """Test host (not supported)."""

        self.assert_selector(
            self.MARKUP,
            ":host",
            [],
            flags=util.HTML
        )

    def test_host_func(self):
        """Test host function (not supported)."""

        self.assert_selector(
            self.MARKUP,
            ":host(h1)",
            [],
            flags=util.HTML
        )