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
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
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
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