Example #1
0
    def test_auto_quit(self):
        # Test if module uninitialized after calling pygame.quit().
        pygame.quit()

        self.assertFalse(fastevent.get_init())
Example #2
0
 def test_get_init(self):
     # Test if get_init() gets the init state.
     self.assertTrue(fastevent.get_init())
Example #3
0
    def test_init(self):
        # Test if module initialized after multiple init() calls.
        fastevent.init()
        fastevent.init()

        self.assertTrue(fastevent.get_init())