Skip to content

Commit

Permalink
Add StringParameter 'required' parameter test
Browse files Browse the repository at this point in the history
  • Loading branch information
madazone committed Mar 1, 2014
1 parent 9592059 commit 0922610
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions master/buildbot/test/unit/test_schedulers_forcesched.py
Expand Up @@ -366,6 +366,11 @@ def test_StringParameter(self):
self.do_ParameterTest(value="testedvalue", expect="testedvalue",
klass=StringParameter)

def test_StringParameter_Required(self):
self.do_ParameterTest(value=" ", expect=ValidationError,
expectKind=Exception,
klass=StringParameter, required=True)

def test_IntParameter(self):
self.do_ParameterTest(value="123", expect=123, klass=IntParameter)

Expand Down

0 comments on commit 0922610

Please sign in to comment.