File: locals_test.py

package info (click to toggle)
pygame 2.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 42,624 kB
  • sloc: ansic: 66,926; python: 48,742; javascript: 1,153; objc: 224; sh: 121; makefile: 59; cpp: 25
file content (17 lines) | stat: -rw-r--r-- 417 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()