proposal_list_test.py 862 B

1234567891011121314151617181920212223242526272829303132333435
  1. """Tests for proposal_list.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 proposals.scripts import proposal_list
  9. class TestProposal(unittest.TestCase):
  10. def test_get_path(self):
  11. proposals_path = proposal_list.get_path()
  12. p = proposal_list.get_list(proposals_path)
  13. self.assertEqual(
  14. p[0],
  15. (
  16. "0024 - Generics goals",
  17. "p0024.md",
  18. ),
  19. )
  20. self.assertEqual(
  21. p[1],
  22. (
  23. "0029 - Linear, rebase, and pull-request GitHub workflow",
  24. "p0029.md",
  25. ),
  26. )
  27. if __name__ == "__main__":
  28. unittest.main()