コード例 #1
0
def test_count_lines_in_txt():
    assert universal_file_counter(base_dir, "txt") == 7
コード例 #2
0
def test_count_lines_in_jpg():
    assert universal_file_counter(base_dir, "jpg") == 0
コード例 #3
0
def test_count_chars_in_rst():
    assert universal_file_counter(base_dir, "rst", str) == 46
コード例 #4
0
def test_count_words_in_rst():
    assert universal_file_counter(base_dir, "rst", str.split) == 7