コード例 #1
0
ファイル: utils_test.py プロジェクト: penta-srl/salt
 def test_build_whitepace_splited_regex(self, warnings_mock):
     # noinspection PyDeprecation
     utils.build_whitepace_splited_regex('foo')
     self.assertTrue(warnings_mock.called)
コード例 #2
0
ファイル: utils_test.py プロジェクト: vonion/salt
 def test_build_whitepace_splited_regex(self, warnings_mock):
     # noinspection PyDeprecation
     utils.build_whitepace_splited_regex('foo')
     self.assertTrue(warnings_mock.called)
コード例 #3
0
 def test_issue_2227(self):
     regex = build_whitepace_splited_regex(SINGLE_DOUBLE_SAME_LINE_TXT)
     self.assertTrue(re.search(regex, MATCH))
コード例 #4
0
 def test_single_and_double_quotes(self):
     regex = build_whitepace_splited_regex(SINGLE_DOUBLE_TXT)
     self.assertTrue(re.search(regex, MATCH))
コード例 #5
0
 def test_single_and_double_quotes(self):
     regex = build_whitepace_splited_regex(SINGLE_DOUBLE_TXT)
     self.assertTrue(re.search(regex, MATCH))
コード例 #6
0
 def test_issue_2227(self):
     regex = build_whitepace_splited_regex(SINGLE_DOUBLE_SAME_LINE_TXT)
     self.assertTrue(re.search(regex, MATCH))