Exemplo n.º 1
0
def test_match_first_paragraph():
    expected = 'pybites != greedy'
    assert regex.match_first_paragraph() == expected
Exemplo n.º 2
0
def test_match_first_paragraph_other_html():
    html = ('<p>Match only this paragraph.</p>'
            '<p>Not this one!</p><p>And this one neither.</p>')
    expected = 'Match only this paragraph.'
    assert match_first_paragraph(html) == expected
Exemplo n.º 3
0
def test_match_first_paragraph():
    expected = "pybites != greedy"
    assert match_first_paragraph() == expected
Exemplo n.º 4
0
def test_match_first_paragraph_default_arg():
    expected = 'pybites != greedy'
    assert match_first_paragraph() == expected
Exemplo n.º 5
0
def test_match_first_paragraph():
    expected = 'pybites != greedy'
    assert match_first_paragraph() == expected