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.

27 lines
659 B

import unittest
from argparse import ArgumentParser
from tests.harness import instrumentGooey
class TestGooeyApplication(unittest.TestCase):
def testFullscreen(self):
parser = self.basicParser()
for shouldShow in [True, False]:
with self.subTest('Should set full screen: {}'.format(shouldShow)):
with instrumentGooey(parser, fullscreen=shouldShow) as (app, gapp):
self.assertEqual(gapp.IsFullScreen(), shouldShow)
def basicParser(self):
parser = ArgumentParser()
parser.add_argument('--foo')
return parser
if __name__ == '__main__':
unittest.main()