def testCheckValidation(self):
    self.mox.StubOutWithMock(self.settings, self.settings._VALIDATION_REGEX)
    self.settings._validation = {
        'foo': {
            self.settings._VALIDATION_REGEX: ['^bar$'],
        }}

    self.settings._CheckValueRegex('foo', 'bar', '^bar$').AndReturn(None)

    self.mox.ReplayAll()
    self.settings._CheckValidation('dne', 'other crap')
    self.settings._CheckValidation('foo', 'bar')
    self.mox.VerifyAll()
Trait property getter.
dataset/ETHPy150Open google/simian/src/tests/simian/settings_test.py/BaseSettingsTest.testCheckValidation--crossover with--dataset/ETHPy150Open enthought/envisage/envisage/plugins/python_shell/view/python_shell_view.py/PythonShellView._get_extension_registry