def METHOD_NAME(self):
    source_file = data_file("text_file.txt")
    parsed = telegram._utils.files.parse_file_input(source_file.read_bytes())
    assert isinstance(parsed, InputFile)
    assert parsed.filename == "application.octet-stream"
    parsed = telegram._utils.files.parse_file_input(
        source_file.read_bytes(), filename="test_file"
    )
    assert isinstance(parsed, InputFile)
    assert parsed.filename == "test_file"