def testCheckValueRegex(self):
    self.settings._CheckValueRegex('k', 'foo', '^foo$')
    self.settings._CheckValueRegex('k', 'foo', settings.re.compile('^foo$'))
    self.assertRaises(
        ValueError,
        self.settings._CheckValueRegex,
        'k', 'bar', '^foo$')
Test _CheckValueRegex().
dataset/ETHPy150Open google/simian/src/tests/simian/settings_test.py/BaseSettingsTest.testCheckValueRegex