def test_count_lines_in_txt(): assert universal_file_counter(base_dir, "txt") == 7
def test_count_lines_in_jpg(): assert universal_file_counter(base_dir, "jpg") == 0
def test_count_chars_in_rst(): assert universal_file_counter(base_dir, "rst", str) == 46
def test_count_words_in_rst(): assert universal_file_counter(base_dir, "rst", str.split) == 7