def test_regex_sub(self):
        self.assertEqual(self.secrets[0].regex.pattern,
                r'password(\s*)=(\s*)([^\s#]+(?:[ \t\v\f]*[^\s#]+)+)')
        self.assertEqual(self.secrets[1].regex.pattern,
                r'password(\s*)=(\s*)("[^"\\]*(?:\\.[^"\\]*)*"|\'[^\'\\]*(?:\\.[^\'\\]*)*\')')
        self.assertEqual(self.secrets[2].regex.pattern,
                r'password(\s*)=(\s*)(?#DoesNotExist)')
Test regex substitution with predefined short cuts
dataset/ETHPy150Open oohlaf/dotsecrets/dotsecrets/tests/test_clean.py/TestCleanSecret.test_regex_sub