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.

46 lines
818 B

  1. '''
  2. Created on Jan 7, 2014
  3. @author: Chris
  4. '''
  5. import os
  6. import sys
  7. import unittest
  8. import wx
  9. import advanced_config
  10. from gooey.gui.client_app import ClientApp
  11. from gooey.gui import argparse_test_data
  12. class TestAdvancedConfigPanel(unittest.TestCase):
  13. def setUp(self):
  14. self.parser = argparse_test_data.parser
  15. def buildWindow(self):
  16. app = wx.PySimpleApp()
  17. module_name = os.path.split(sys.argv[0])[-1]
  18. frame = wx.Frame(None, -1, module_name, size=(640, 480))
  19. panel = advanced_config.AdvancedConfigPanel(frame, ClientApp(self.parser))
  20. frame.Show()
  21. app.MainLoop()
  22. def testAdvancedConfigPanel(self):
  23. self.buildWindow()
  24. if __name__ == "__main__":
  25. #import sys;sys.argv = ['', 'Test.testName']
  26. unittest.main()