コード例 #1
0
 def test_regexp_match_any(self):
     matcher = Matcher('H.llo', regexp=True)
     assert matcher.match_any(('Hello', 'world'))
     assert matcher.match_any(['jam', 'is', 'hillo'])
     assert not matcher.match_any(('no', 'match', 'here'))
     assert not matcher.match_any(())
コード例 #2
0
 def test_match_any(self):
     matcher = Matcher('H?llo')
     assert matcher.match_any(('Hello', 'world'))
     assert matcher.match_any(['jam', 'is', 'hillo'])
     assert not matcher.match_any(('no', 'match', 'here'))
     assert not matcher.match_any(())
コード例 #3
0
 def test_match_any(self):
     matcher = Matcher('H?llo')
     assert matcher.match_any(('Hello', 'world'))
     assert matcher.match_any(['jam', 'is', 'hillo'])
     assert not matcher.match_any(('no', 'match', 'here'))
     assert not matcher.match_any(())
コード例 #4
0
ファイル: test_match.py プロジェクト: zsg555/robotframework
 def test_regexp_match_any(self):
     matcher = Matcher('H.llo', regexp=True)
     assert matcher.match_any(('Hello', 'world'))
     assert matcher.match_any(['jam', 'is', 'hillo'])
     assert not matcher.match_any(('no', 'match', 'here'))
     assert not matcher.match_any(())