Exemplo 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"
Exemplo n.º 2
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)