Пример #1
0
 def test_get_current_video_driver(self):
     curdriver = video.get_current_video_driver()
     found = False
     numdrivers = video.get_num_video_drivers()
     for i in range(numdrivers):
         name = video.get_video_driver(i)
         if name == curdriver:
             found = True
             break
     self.assertTrue(found, "Current video driver not found")
Пример #2
0
 def test_get_video_driver(self):
     numdrivers = video.get_num_video_drivers()
     for i in range(numdrivers):
         name = video.get_video_driver(i)
         self.assertIsInstance(name, str)
Пример #3
0
 def test_get_num_video_drivers(self):
     numdrivers = video.get_num_video_drivers()
     self.assertGreaterEqual(numdrivers, 1)