コード例 #1
0
ファイル: test_regex.py プロジェクト: seantibor/challenges
def test_match_first_paragraph():
    expected = 'pybites != greedy'
    assert regex.match_first_paragraph() == expected
コード例 #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
コード例 #3
0
ファイル: test_regex.py プロジェクト: pogross/bitesofpy
def test_match_first_paragraph():
    expected = "pybites != greedy"
    assert match_first_paragraph() == expected
コード例 #4
0
def test_match_first_paragraph_default_arg():
    expected = 'pybites != greedy'
    assert match_first_paragraph() == expected
コード例 #5
0
ファイル: test_regex.py プロジェクト: Lianyx/challenges
def test_match_first_paragraph():
    expected = 'pybites != greedy'
    assert match_first_paragraph() == expected