Пример #1
0
def test_paragraphs_many(writing_string, expected_count):
    """Check that it can detect two or more paragraphs"""
    assert fragments.count_paragraphs(writing_string) == expected_count
Пример #2
0
def test_paragraphs_many(writing_string, expected_count):
    """Check that it can detect two or more paragraphs."""
    actual_paragraph_count, _ = fragments.count_paragraphs(writing_string)
    assert actual_paragraph_count == expected_count
Пример #3
0
def test_paragraphs_zero_or_one(writing_string, expected_count):
    """Check that it can detect zero or one paragraphs"""
    assert fragments.count_paragraphs(writing_string) == expected_count
Пример #4
0
def test_paragraphs_zero_or_one(writing_string, expected_count):
    """Check that it can detect zero or one paragraphs."""
    actual_paragraph_count, _ = fragments.count_paragraphs(writing_string)
    assert actual_paragraph_count == expected_count