def test_multiline_python_comments_mixed(code_string, expected_count): """Checks that it can find multiline comments in mixtures""" assert comments.count_multiline_python_comment(code_string) == expected_count
def test_multiline_python_comments_zero_or_one(code_string, expected_count): """Checks that it finds zero or one multiline comments""" assert comments.count_multiline_python_comment(code_string) == expected_count
def test_multiline_python_comments_two(code_string, expected_count): """Checks that it has two or more multiline python comments""" assert comments.count_multiline_python_comment(code_string) == expected_count
def test_multiline_python_comments_many(code_string, expected_count): """Check that it finds many multiline Python docstring comments.""" count_of_multiline_python_comments, _ = comments.count_multiline_python_comment( code_string ) assert count_of_multiline_python_comments == expected_count
def test_multiline_python_comments_mixed(code_string, expected_count): """Check that it can find multiline Python comments in mixtures.""" count_of_multiline_python_comments, _ = comments.count_multiline_python_comment( code_string ) assert count_of_multiline_python_comments == expected_count
def test_multiline_python_comments_two(code_string, expected_count): """Check that it has two or more multiline python comments.""" count_of_multiline_python_comments, _ = comments.count_multiline_python_comment( code_string ) assert count_of_multiline_python_comments == expected_count
def test_multiline_python_comments_zero_or_one(code_string, expected_count): """Check that it finds zero or one Python multiline comments.""" count_of_multiline_python_comments, _ = comments.count_multiline_python_comment( code_string ) assert count_of_multiline_python_comments == expected_count
def test_multiline_python_comments_many(code_string, expected_count): """checks that it finds many multiline python docstring comments""" assert comments.count_multiline_python_comment(code_string) == expected_count