def METHOD_NAME(self, attach):
    source_file = data_file("text_file.txt")
    parsed = telegram._utils.files.parse_file_input(source_file.read_bytes(), attach=attach)
    assert isinstance(parsed, InputFile)
    assert bool(parsed.attach_name) is attach