Files
carbon-lang/proposals/scripts/proposal_list_test.py
T
Jon Meow 5fa513992c Add mypy annotations to proposals scripts (#783)
Renames proposals to proposal_list because the module name conflicts with the directory name
2021-08-26 09:27:49 -07:00

36 lines
862 B
Python

"""Tests for proposal_list.py."""
__copyright__ = """
Part of the Carbon Language project, under the Apache License v2.0 with LLVM
Exceptions. See /LICENSE for license information.
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
"""
import unittest
from proposals.scripts import proposal_list
class TestProposal(unittest.TestCase):
def test_get_path(self):
proposals_path = proposal_list.get_path()
p = proposal_list.get_list(proposals_path)
self.assertEqual(
p[0],
(
"0024 - Generics goals",
"p0024.md",
),
)
self.assertEqual(
p[1],
(
"0029 - Linear, rebase, and pull-request GitHub workflow",
"p0029.md",
),
)
if __name__ == "__main__":
unittest.main()