예제 #1
0
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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
예제 #5
0
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
예제 #6
0
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
예제 #7
0
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
예제 #8
0
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