Test FormConfig.callback for correct handling of missing stdout/err params.

pull/7/head
Ferry Boender 9 years ago
parent 386af020a2
commit 1050b36181
  1. 7
      test/test.py

@ -78,6 +78,13 @@ class FormConfigTestCase(unittest.TestCase):
self.assertTrue(exitcode == 33)
self.assertTrue('stdout' in stdout.read())
def testCallbackMissingParams(self):
"""
"""
sf = scriptform.ScriptForm('test_formconfig_callback.json')
fc = sf.get_form_config()
self.assertRaises(ValueError, fc.callback, 'test_raw', {})
class FormDefinitionTest(unittest.TestCase):
"""
Form Definition tests. Mostly directly testing if validations work.

Loading…
Cancel
Save