| Index: appengine/findit/handlers/test/config_test.py
|
| diff --git a/appengine/findit/handlers/test/config_test.py b/appengine/findit/handlers/test/config_test.py
|
| index a4b862907d40e47e793f853ede72d14ca76923f5..bfc90f6483b02b080c0af66f5b62498df428d34b 100644
|
| --- a/appengine/findit/handlers/test/config_test.py
|
| +++ b/appengine/findit/handlers/test/config_test.py
|
| @@ -391,6 +391,24 @@ class ConfigTest(testing.AppengineTestCase):
|
| }
|
| }
|
| }))
|
| + self.assertTrue(config._ValidateTrybotMapping({
|
| + 'master1': {
|
| + 'builder1': {
|
| + 'mastername': 'tryserver1',
|
| + 'buildername': 'trybot1',
|
| + 'strict_regex': True,
|
| + }
|
| + }
|
| + }))
|
| + self.assertFalse(config._ValidateTrybotMapping({
|
| + 'master1': {
|
| + 'builder1': {
|
| + 'mastername': 'tryserver1',
|
| + 'buildername': 'trybot1',
|
| + 'strict_regex': 'a',
|
| + }
|
| + }
|
| + }))
|
| self.assertFalse(config._ValidateTrybotMapping(['a']))
|
| self.assertFalse(config._ValidateTrybotMapping({'a': ['b']}))
|
| self.assertFalse(config._ValidateTrybotMapping({'a': {'b': ['1']}}))
|
|
|