Beispiel #1
0
 def test_negative_ids(self):
     """Some ids get us negative points."""
     node = fragment_fromstring('<p id="media">')
     self.assertEqual(get_class_weight(node), -25)
Beispiel #2
0
 def test_positive_ids(self):
     """Some ids get us bonus points."""
     node = fragment_fromstring('<p id="content">')
     self.assertEqual(get_class_weight(node), 25)
Beispiel #3
0
 def test_negative_class(self):
     """Some classes get us negative points."""
     node = fragment_fromstring('<p class="comment">')
     self.assertEqual(get_class_weight(node), -25)
Beispiel #4
0
def test_negative_ids():
    """Some ids get us negative points."""
    node = fragment_fromstring('<p id="media">')
    assert get_class_weight(node) == -25
Beispiel #5
0
 def test_positive_class(self):
     """Some classes get us bonus points."""
     node = fragment_fromstring('<p class="article">')
     self.assertEqual(get_class_weight(node), 25)
Beispiel #6
0
def test_positive_ids():
    """Some ids get us bonus points."""
    node = fragment_fromstring('<p id="content">')
    assert get_class_weight(node) == 25
Beispiel #7
0
def test_negative_class():
    """Some classes get us negative points."""
    node = fragment_fromstring('<p class="comment">')
    assert get_class_weight(node) == -25
 def test_negative_ids(self):
     """Some ids get us negative points."""
     node = fragment_fromstring('<p id="media">')
     self.assertEqual(get_class_weight(node), -25)
Beispiel #9
0
def test_positive_class():
    """Some classes get us bonus points."""
    node = fragment_fromstring('<p class="article">')
    assert get_class_weight(node) == 25
 def test_positive_ids(self):
     """Some ids get us bonus points."""
     node = fragment_fromstring('<p id="content">')
     self.assertEqual(get_class_weight(node), 25)
 def test_negative_class(self):
     """Some classes get us negative points."""
     node = fragment_fromstring('<p class="comment">')
     self.assertEqual(get_class_weight(node), -25)
 def test_positive_class(self):
     """Some classes get us bonus points."""
     node = fragment_fromstring('<p class="article">')
     self.assertEqual(get_class_weight(node), 25)
Beispiel #13
0
def test_negative_ids():
    """Some ids get us negative points."""
    node = fragment_fromstring('<p id="media">')
    assert get_class_weight(node) == -25
Beispiel #14
0
def test_negative_class():
    """Some classes get us negative points."""
    node = fragment_fromstring('<p class="comment">')
    assert get_class_weight(node) == -25
Beispiel #15
0
def test_positive_ids():
    """Some ids get us bonus points."""
    node = fragment_fromstring('<p id="content">')
    assert get_class_weight(node) == 25
Beispiel #16
0
def test_positive_class():
    """Some classes get us bonus points."""
    node = fragment_fromstring('<p class="article">')
    assert get_class_weight(node) == 25