You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
659 B

  1. import unittest
  2. from argparse import ArgumentParser
  3. from tests.harness import instrumentGooey
  4. class TestGooeyApplication(unittest.TestCase):
  5. def testFullscreen(self):
  6. parser = self.basicParser()
  7. for shouldShow in [True, False]:
  8. with self.subTest('Should set full screen: {}'.format(shouldShow)):
  9. with instrumentGooey(parser, fullscreen=shouldShow) as (app, gapp):
  10. self.assertEqual(gapp.IsFullScreen(), shouldShow)
  11. def basicParser(self):
  12. parser = ArgumentParser()
  13. parser.add_argument('--foo')
  14. return parser
  15. if __name__ == '__main__':
  16. unittest.main()