"""Test past selectors."""
from .. import util
class TestPast(util.TestCase):
"""Test past selectors."""
MARKUP = """
"""
def test_past(self):
"""Test past (should match nothing)."""
self.assert_selector(
self.MARKUP,
"p:past",
[],
flags=util.HTML
)
def test_not_past(self):
"""Test not past."""
self.assert_selector(
self.MARKUP,
"p:not(:past)",
["0"],
flags=util.HTML
)