def test_line_count_s_2(): try: line_count('.', 'missing.txt') == 32 assert False, "How are you reading a missing file?" except IOError: pass
def test_line_count_s_1(): assert line_count('.', 'essay.txt') == 32
def test_line_count_s_3(): assert line_count('.', 'essay.txt', True) == 20
def test_line_count_i_1(): assert line_count('.', input_file, True) == 5