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