示例#1
0
 def test_use_headless__empty_display(self):
     self.assertEqual(True, quibble.use_headless(),
                      'Use headless mode when DISPLAY is an empty string')
示例#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')
示例#3
0
 def test_use_headless__display_set(self):
     self.assertEqual(False, quibble.use_headless(),
                      'Do not use headless when a DISPLAY is provided')