def test_chosen_fragment_many(writing_string, chosen_fragment, expected_count): """Check that it can detect many of a fragment""" assert (fragments.count_specified_fragment( writing_string, chosen_fragment) == expected_count)
def test_chosen_fragment_zero_or_one(writing_string, chosen_fragment, expected_count): """Check that it can detect one or more of a fragment""" assert (fragments.count_specified_fragment( writing_string, chosen_fragment) == expected_count)