Intelegentny_Pszczelarz/.venv/Lib/site-packages/pygame/tests/locals_test.py

18 lines
417 B
Python
Raw Normal View History

2023-03-18 12:55:22 +01:00
import unittest
import pygame.constants
import pygame.locals
class LocalsTest(unittest.TestCase):
def test_locals_has_all_constants(self):
constants_set = set(pygame.constants.__all__)
locals_set = set(pygame.locals.__all__)
# locals should have everything that constants has
self.assertEqual(constants_set - locals_set, set())
if __name__ == "__main__":
unittest.main()