proposals_test.py 725 B

12345678910111213141516171819202122232425
  1. """Tests for proposals.py."""
  2. __copyright__ = """
  3. Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  4. Exceptions. See /LICENSE for license information.
  5. SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. """
  7. import unittest
  8. from carbon.proposals.scripts import proposals
  9. class TestProposal(unittest.TestCase):
  10. def test_get_path(self):
  11. proposals_path = proposals.get_path()
  12. p = proposals.get_list(proposals_path)
  13. self.assertEqual(
  14. p[0],
  15. (
  16. "0029 - Linear, rebase, and pull-request GitHub workflow",
  17. "p0029.md",
  18. ),
  19. )
  20. self.assertEqual(p[1], ("0029 - Decision", "p0029_decision.md"))