Exemple #1
0
 def test_use_headless__empty_display(self):
     self.assertEqual(True, quibble.use_headless(),
                      'Use headless mode when DISPLAY is an empty string')
Exemple #2
0
 def test_use_headless__unset_display(self):
     self.assertNotIn('DISPLAY', os.environ)
     self.assertEqual(True, quibble.use_headless(),
                      'Use headless mode when DISPLAY is not set')
Exemple #3
0
 def test_use_headless__display_set(self):
     self.assertEqual(False, quibble.use_headless(),
                      'Do not use headless when a DISPLAY is provided')