Ejemplo n.º 1
0
 def test_SDL_GetCurrentVideoDriver(self):
     curdriver = video.SDL_GetCurrentVideoDriver()
     found = False
     numdrivers = video.SDL_GetNumVideoDrivers()
     for i in range(numdrivers):
         name = video.SDL_GetVideoDriver(i)
         if name == curdriver:
             found = True
             break
     assert found, "Current video driver not found"
Ejemplo n.º 2
0
 def test_SDL_GetNumVideoDrivers(self):
     numdrivers = video.SDL_GetNumVideoDrivers()
     assert numdrivers >= 1
Ejemplo n.º 3
0
 def test_SDL_GetVideoDriver(self):
     numdrivers = video.SDL_GetNumVideoDrivers()
     for i in range(numdrivers):
         name = video.SDL_GetVideoDriver(i)
         assert type(name) in (str, bytes)
Ejemplo n.º 4
0
 def test_SDL_GetNumVideoDrivers(self):
     numdrivers = video.SDL_GetNumVideoDrivers()
     self.assertGreaterEqual(numdrivers, 1)