Closed pcraciunoiu closed 13 years ago
Test case for test.py:
class TestHasClass(unittest.TestCase): def test_child_has_class(self): doc = pq("""<div id="test" class="on"><div class="off"></div></div>""") assert doc('#test').hasClass('on') assert not doc('#test').hasClass('off')
I'll file a pull request.
Test case for test.py:
I'll file a pull request.